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 (admin) not permitted to edit global set in another language [4.x]: #13606

Closed
leowebguy opened this issue Aug 25, 2023 · 1 comment
Closed

Comments

@leowebguy
Copy link

leowebguy commented Aug 25, 2023

What happened?

Description

CP language switch doesn't work on Globals
Craft won't allow admin user to access globals in another language

Steps to reproduce

1: I can access and edit https://aaa.org/admin/globals/configs (english) but CP language switch doesn't work (bug 1)

2: Go to entries, switch to another language and go back to globals >> https://aaa.org/admin/globals/configs?site=spanish ... I get the message:

Unauthorized
User not permitted to edit global set

Expected behavior

Allow admin user to access globals in another language

Actual behavior

Screenshot 2023-08-25 at 8 55 58 AM

Trace

yii\web\ForbiddenHttpException: User not permitted to edit global set in /media/data/www/aaa.org/vendor/craftcms/cms/src/controllers/GlobalsController.php:166
Stack trace:
#0 [internal function]: craft\controllers\GlobalsController->actionEditContent()
#1 /media/data/www/aaa.org/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()
#2 /media/data/www/aaa.org/vendor/yiisoft/yii2/base/Controller.php(178): yii\base\InlineAction->runWithParams()
#3 /media/data/www/aaa.org/vendor/yiisoft/yii2/base/Module.php(552): yii\base\Controller->runAction()
#4 /media/data/www/aaa.org/vendor/craftcms/cms/src/web/Application.php(304): yii\base\Module->runAction()
#5 /media/data/www/aaa.org/vendor/yiisoft/yii2/web/Application.php(103): craft\web\Application->runAction()
#6 /media/data/www/aaa.org/vendor/craftcms/cms/src/web/Application.php(289): yii\web\Application->handleRequest()
#7 /media/data/www/aaa.org/vendor/yiisoft/yii2/base/Application.php(384): craft\web\Application->handleRequest()
#8 /media/data/www/aaa.org/web/index.php(12): yii\base\Application->run()
#9 {main}

Craft CMS version

4.5.1

PHP version

8.1

Operating system and version

linux/ddev

Database type and version

mariadb 10.4

Image driver and version

No response

Installed plugins and versions

Element API 3.0.1.1
Logs 4.0.0
Maps 4.0.4
Mix Manifest 1.0.3
Redactor 3.0.4
Site Switcher 2.3.0

@brandonkelly
Copy link
Member

This was fixed in 4.5.2! (See #13603)

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

No branches or pull requests

2 participants