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

PersonalTools/ Site Setup assumes Site Administrators have the correct permission for the site setup action #6355

Closed
JeffersonBledsoe opened this issue Sep 30, 2024 · 1 comment · Fixed by #6413

Comments

@JeffersonBledsoe
Copy link
Member

Describe the bug

As explained in #6346 (comment) and #6346 (comment), the current Site Setup button does a check for the role of a user to see if they are able to access the site setup. This makes the assumption that these roles have the correct permission, but it is possible for the permission required and the roles assigned to it to be change, causing a mismatch between the frontend and backend.

We should likely use the @actions endpoint to see whether the plone_setup key is available to know if the user can access the site setup

@davisagli
Copy link
Member

Using the actions endpoint sounds like a good way to do this. We already do that for other things in the toolbar.

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

Successfully merging a pull request may close this issue.

2 participants