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

User can see, select and (trigger) publish resources in publish dialog even if he is not allow to see them (OpenCms 10.0.1) #709

Closed
tobias-karrer opened this issue Jan 7, 2021 · 1 comment

Comments

@tobias-karrer
Copy link

tobias-karrer commented Jan 7, 2021

Status Quo

I created a user able to login by adding him to User group
image

and removed permissions for that site
image

User then can open the publish dialog and select resources to publish, even if he is not allowed to see them
image

Clicking on publish closes the dialog with message "", but permissions are checked, it got not published and errors are logged:
... Caused by: org.opencms.security.CmsPermissionViolationException: Denied access to resource "/sites/group/.content/linkaccordion/", required permissions are "+r". at org.opencms.db.CmsSecurityManager.checkPermissions(CmsSecurityManager.java:6967) at org.opencms.db.CmsSecurityManager.checkPermissions(CmsSecurityManager.java:6938) at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:7338) at org.opencms.db.CmsSecurityManager.readResource(CmsSecurityManager.java:4932)

Expected behaviour

User can't see the resources he has not access in publish dialog.

@tobias-karrer tobias-karrer changed the title User can see and select resources in publish dialog even if he is not allow to publish (OpenCms 10.0.1) User can see, select and (trigger) publish resources in publish dialog even if he is not allow to see them (OpenCms 10.0.1) Jan 7, 2021
@gWestenberger
Copy link
Contributor

Fixed in master branch.

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

No branches or pull requests

2 participants