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

Don't show ROLE_ADMIN as an option for domain admins #432

Open
kidhab opened this issue Jan 18, 2023 · 0 comments
Open

Don't show ROLE_ADMIN as an option for domain admins #432

kidhab opened this issue Jan 18, 2023 · 0 comments

Comments

@kidhab
Copy link
Contributor

kidhab commented Jan 18, 2023

I'm refering to the account creation dialog (/admin/user/create) as well to the edit dialog (admin/user/[0-9]*/edit)

As a domain admin the role select fiel present all availble roles - even the role ROLE_ADMIN. Selecting this role ends in an error message when I hit the save button:

request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException:
"Access Denied to the action create and role CREATE" at /opt/userli/userli/3.1.0/vendor/symfony/security-http/Firewall/ExceptionListener.php line 137
{"exception":" [object] (Symfony\\Component\\HttpKernel\\Exception\\AccessDeniedHttpException(code: 0): Access Denied to the action create and role CREATE at /opt/userli/userli/3.1.0/vendor/symfony/security-http/Firewall/ExceptionListener.php:137,
Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException(code: 403): Access Denied to the action create and role CREATE at /opt/userli/userli/3.1.0/vendor/sonata-project/admin-bundle/src/Admin/AbstractAdmin.php:2968)"}

Maybe it would be a possibility to hiden this role from domain admins?

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

No branches or pull requests

1 participant