-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GeoStory and Dashboard permissions for Anonymous users are reset on metadata updates #11578
Comments
@saxas13 I couldn't reproduce the problem. How are you setting the two configurations? |
When I set up the geonode-project I set these two variables (DEFAULT_ANONYMOUS_VIEW_PERMISSION and DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION) in .env file which are in a vanilla set to "true" (anyone can see everything) to "false" (nothing is per default visible). |
@giohappy I could reproduce the issue: |
Thanks @saxas13. I was able to reproduce it. |
@giohappy I just tested with Geostories, and as expected, as the Maps are stored withing the GeoStory as internal Ressource, they get visible including all Layers (eben the ones, which are not visible to Anyone) |
Hi @saxas13 |
Expected Behavior
Setting DEFAULT_ANONYMOUS_VIEW_PERMISSION=False and DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION=False applies to all Geonode ressoureces, which includes Datasets, Documents, Maps, Geostories and Dashboards.
Actual Behavior
Even though the environment is set up with DEFAULT_ANONYMOUS_VIEW_PERMISSION=False and DEFAULT_ANONYMOUS_DOWNLOAD_PERMISSION=False GeoStories and Dashboards get per Default "Viewing" Permission which seems critial, because this seems to overwrite the restrictions for maps.
I created a dashboard and a geostory with one Map which is set only to be visible to a specific group. I shared the ressoureces with the group, didn't looked at the other permissions, as for maps and layers are working as expected. When I logged out, the Dashboard and Story where visible and accessible, it also showed the Map which I set as Background to the title of the Story.
While I like the Idea, that I can use ressources in Geostories to show to "all" while keeping the ressources itself hidden, GeoStories and Dashboards should still take the default permissions into account.
Steps to Reproduce the Problem
Specifications
The text was updated successfully, but these errors were encountered: