You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a non-admin user account as a test. When I log in as this user, I receiving an error when I try to access their own profile in the control panel.
TypeError
craft\web\twig\CpExtension::craft\web\twig\{closure}(): Argument #1 ($items) must be of type array, null given, called in /var/www/html/storage/runtime/compiled_templates/c1/c1e08b6450c3c730f591d70e4fc5205f.php on line 70 and defined in /var/www/html/vendor/craftcms/cms/src/web/twig/CpExtension.php:51
The user is part of a user group with limited permissions. Other than access to a couple sections and asset volumes, these are the other permissions they have:
If I grant the user access to the primary site (Branded) this error goes away.
Steps to reproduce
Create a user account.
Give the user account permission to "Access the control panel" but nothing else.
Log in as this user.
Click their account name in the upper right corner of the control panel to open the dropdown, then click their username.
Expected behavior
User should be able to edit their account information.
Actual behavior
Receives and error.
Craft CMS version
Craft Pro 5.1.4
PHP version
8.2.18
Operating system and version
Linux 6.6.26-linuxkit
Database type and version
MySQL 8.0.33
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
Anchors 3.4.0
Asset Rev 8.0.0
CKEditor 4.0.6
Retcon 3.0.0
Table of contents 3.0.0
The text was updated successfully, but these errors were encountered:
What happened?
Description
I created a non-admin user account as a test. When I log in as this user, I receiving an error when I try to access their own profile in the control panel.
Stack trace:
The user is part of a user group with limited permissions. Other than access to a couple sections and asset volumes, these are the other permissions they have:
If I grant the user access to the primary site (Branded) this error goes away.
Steps to reproduce
Expected behavior
User should be able to edit their account information.
Actual behavior
Receives and error.
Craft CMS version
Craft Pro 5.1.4
PHP version
8.2.18
Operating system and version
Linux 6.6.26-linuxkit
Database type and version
MySQL 8.0.33
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
The text was updated successfully, but these errors were encountered: