Refactor how resource permissions are set inside the mapstore client context #7444
Labels
major
A high priority issue which might affect a lot of people or large parts of the codebase
Milestone
Expected Behavior
1.
__GEONODE_CONFIG__.permissionsList
should be renamed to__GEONODE_CONFIG__.perms
(These should be GeoNode resource permissions not guardian perms.)2. on view map :
__GEONODE_CONFIG__.perms
should have all permissions a user has on a viewed map.3. on view layer:
__GEONODE_CONFIG__.perms
should have all permissions a user has on a viewed layer.4. on view geostory:
__GEONODE_CONFIG__.perms
should have all permissions a user has on a viewed geostory.Actual Behavior
Currently GeoNode returns the permissions in multiple ways:
__GEONODE_CONFIG__.permissionsList
is returned. The client is usingresourceConfig.map.info
instead__GEONODE_CONFIG__.permissionsList
(and it also returns add_resourcebase see Define add_resourcebase permission for users geosolutions-it/nexus-geonode#84)Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: