Skip to content
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

Improvement on Context permissions management #5149

Open
tdipisa opened this issue Apr 17, 2020 · 1 comment
Open

Improvement on Context permissions management #5149

tdipisa opened this issue Apr 17, 2020 · 1 comment

Comments

@tdipisa
Copy link
Member

tdipisa commented Apr 17, 2020

Description

Since there is a relationship between an application context and maps created within it, there must be specific rules to prevent inconsistent states like:

  • The final user has permissions to access a map resource but not the related application context resource
  • The application context is deleted so a map within that context is no longer accessible

Below are the constraints and actions that need to be developed to enhance the Application Context tool:

  1. When you create a map in a context, the map must have the same permissions of the context, these permissions cannot be changed by the final user

  2. If the administrator try to change context's permissions, a confirmation dialog must appear to confirm the following action:

  1. If a context is deleted, a confirmation dialog must appear to the administrator to confirm the following action:
  • Use the MS's default context for maps within the deleted context: if confirmed, a batch update request to the MS backend will remove all map attributes containing the ID of the context to automatically use the default one (in that case map permissions can be maintained as they are, the default context is public). Also this point requires Provide Entry point for batch attribute update geostore#205.

Other useful information

@tdipisa
Copy link
Member Author

tdipisa commented Apr 17, 2020

From @offtherailz

Increased a little the estimation because "assigning the same permission of the context" in case of user maps may need a little adjustment (permissions of the context, as other resources, are not accessible for users that has read only access).
One solution is to limit the creation of maps in context by read-only users to only private maps. @tdipisa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant