Site Administrator can't access user controlpanel
See original GitHub issueDescribe the bug A user with the Site Administrator role, receives an Unauthorized error, when trying to access the user’s controlpanel:
http://localhost:3000/controlpanel/users
Log:
2022-11-18 10:24:33 ERROR [Zope.SiteErrorLog:35][waitress-2] Unauthorized: http://localhost:3000/@roles
Traceback (innermost last):
Module ZPublisher.WSGIPublisher, line 167, in transaction_pubevents
Module ZPublisher.WSGIPublisher, line 376, in publish_module
Module ZPublisher.WSGIPublisher, line 255, in publish
Module ZPublisher.BaseRequest, line 641, in traverse
Module ZPublisher.HTTPResponse, line 1017, in unauthorized
zExceptions.unauthorized.Unauthorized: You are not authorized to access this resource.
To Reproduce Steps to reproduce the behavior:
- Create a user with the Site Administrator role
- Logged in with this user, try to access the user’s controlpanel: http://localhost:3000/controlpanel/users
Expected behavior Allow the user to access the control panel
Software (please complete the following information):
OS: Ubuntu 22 Browser: Chrome Volto Version: 16.0.0-alpha.48 Plone Version 6.0.0b3 Plone REST API Version: 8.30.0
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Unable to access User Accounts Control panel (UAC)
1) Press Windows + X key together on your desktop screen. · 2) Click on Command Prompt (admin) to open Command Prompt. ·...
Read more >Cannot Access User Control Panel - General Help
I am running AsteriskNow 64 bit (asterisk 11.5, freepbx modules all up to date) and I cannot log in to the User Portal....
Read more >control panel - you cannot access the CP with that account
New user has activated account but is getting this message when trying to log in: "you cannot access the CP with that account"....
Read more >Frequently Asked Questions - SAFE-N
Login and Registration Issues. Why do I need to register? You may not have to, it is up to the administrator of the...
Read more >How to Turn User Account Control On or Off in Windows 10 ...
Type UAC in the search field on your taskbar. (If the search field isn't visible, right-click the Start button and choose Search.) Click...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think
plone.app.controlpanel.UsersAndGroups
is the correct permission to use here.@wesleybl Excellent point. The classic UI users control panel has some checks for this (search for is_zope_manager in https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/controlpanel/browser/usergroups_usersoverview.py) that need to be duplicated for the REST API.
There’s a good chance that the lack of these checks is why the control panel is restricted to the
Manage portal
permission so far.