question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Site Administrator can't access user controlpanel

See original GitHub issue

Describe 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:

  1. Create a user with the Site Administrator role
  2. 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:open
  • Created 10 months ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
davisaglicommented, Nov 19, 2022

I think plone.app.controlpanel.UsersAndGroups is the correct permission to use here.

0reactions
davisaglicommented, Nov 23, 2022

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found