-
Notifications
You must be signed in to change notification settings - Fork 109
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
Clone option in the list view is missing on Maps for non admin users #1308
Comments
We have 2 requirements for the clone action, which are the It seems the permissions for maps need to be checked for normal users on the server side, if the behaviour is not expected @marthamareal @giohappy |
@mattiagiupponi can you take a look at this? |
@giohappy
elif AdvancedSecurityWorkflowManager.assignable_perm_condition(perm, _resource_type):
_safe_assign_perm(perm, anonymous_group, _resource.get_self_resource()) Internally the _assignable_perm_policy_condition = (perm in DOWNLOAD_PERMISSIONS and resource_type in DOWNLOADABLE_RESOURCES) or \
(perm in DATASET_EDIT_DATA_PERMISSIONS and resource_type in DATA_EDITABLE_RESOURCES_SUBTYPES) or \
(perm not in (DOWNLOAD_PERMISSIONS + DATASET_EDIT_DATA_PERMISSIONS)) The map doesn't pass mainly because of the first if since NOTE: we can add the map in the |
In that case, for admins, are all possible perms (which includes download_resourcebase) automatically returned for maps? |
@mattiagiupponi I suspect that a specific permission must be created to say if the user has permission to clone, which will be calculated differently based on the resource type. It might be By the way @DavidQuartz I see that the "Save as..." button is available inside a map. How is the visibility of this button calculated? |
Yes, the admin will have all the permissions because it does not pass through that code
@giohappy Can't it be easier to rely only on the |
|
@giohappy the Save As plugin is allowed on all maps in map viewer. The permissions are only checked for datasets and documents as this issue required |
as agreed with @allyoucanmap for the moment we will let the client decide if
|
… for non admin users (GeoNode#1352)
… for non admin users (GeoNode#1352)
Expected behavior
Users should be able to clone Maps from the list view.
Actual behavior
Only admins can see the clone option on maps in the list view
The text was updated successfully, but these errors were encountered: