The same as we do for anonymous users with DEFAULT_ANONYMOUS_VIEW_PERMISSION and DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION, we want to allow configuring the default permissions for registered members.
This will be the opportunity to deprecate the current ones for the anonymous user, and switch to a configuration that sets the permissions itself, instead of using two mutually-exclusive booleans.
DEFAULT_ANONYMOUS_PERMISSIONS = os.getenv("DEFAULT_ANONYMOUS_PERMISSIONS", None) # Compact permission enum, "view or download"
DEFAULT_REGISTERED_MEMBERS_PERMISSIONS = os.getenv("DEFAULT_ANONYMOUS_PERMISSIONS", None) # Compact permission enum, "view, download, edit or manage"
They will be None by default. None is a valid compact permission value, but it will be used by the underlying logic to assign no permissions.
The same as we do for anonymous users with
DEFAULT_ANONYMOUS_VIEW_PERMISSIONandDEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION, we want to allow configuring the default permissions for registered members.This will be the opportunity to deprecate the current ones for the anonymous user, and switch to a configuration that sets the permissions itself, instead of using two mutually-exclusive booleans.
They will be
Noneby default.Noneis a valid compact permission value, but it will be used by the underlying logic to assign no permissions.