Skip to content

Implement the option to configure the default permissions for registered members in GeoNode #14117

@sijandh35

Description

@sijandh35

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions