geosolutions-it/geonode

Admins can view a dataset uploaded by the MAIN ADMIN but can not view its map layers

Closed this issue · 2 comments

Steps to Reproduce

  1. Log in as the main admin
  2. Upload a dataset as the Main Admin
  3. Set the permissions to None for both anyone and registered members
  4. Log out and log in from another admin account
  5. View the uploaded dataset(s)

Expected Behaviour

Other admins should be able to view the datasets uploaded by the main admin in totality. i.e. the thumbnail, metadata, info, abstract, map layers

Actual Behaviour

The admin can not view the map layers uploaded by the main admin.

Additional info: It seems the geoserver rules assign the user admin instead of the role admin. Screenshot image.png
Proposal: making admins a group

Geofence roles map to GeoNode groups, and currently we don't have a group for admins.
The initial work done to use Django groups as roles (and not only for organizations) was started when the "contributors" group was introduced. We should probably extend it to admins, and assign the default rule for datasets to and admin role rather then a single admin user.

This will take quite some work, so it won't happen soon, but let's keep this issue around.

closed in favour of GeoNode#10516