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

Exception when switching roles with differing module access #25

Open
kitzberger opened this issue Sep 23, 2023 · 0 comments · May be fixed by xperseguers/begroups_roles#2
Open

Exception when switching roles with differing module access #25

kitzberger opened this issue Sep 23, 2023 · 0 comments · May be fixed by xperseguers/begroups_roles#2

Comments

@kitzberger
Copy link

When switching from role 1 (that is currently using a certain module, e.g. "forms") to role 2 (that is lacking that permission) there's an exception for TYPO3 11:

Access Error: You don't have access to this module.

This is due to the fact that after switching roles via AJAX a refresh of the current URL is trigger via EXT:begroups_roles/Resources/Public/JavaScript/Toolbar/RoleSwitcher.js.

Here's a quick'n'dirty workaround:

- document.location.reload();
+ document.location.assign('/typo3');

image

kitzberger added a commit to kitzberger/begroups_roles that referenced this issue Sep 23, 2023
kitzberger added a commit to kitzberger/begroups_roles that referenced this issue Sep 23, 2023
kitzberger added a commit to kitzberger/begroups_roles that referenced this issue Sep 29, 2023
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

Successfully merging a pull request may close this issue.

1 participant