-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Admin UI not fully respecting settings and system roles #2188
Comments
I got a very similar behavior with tax rates access:
As this seems closely related to the original issue, I only leave a comment instead of opening another one |
Along similar lines:
|
I think one issue that's going on here is that the permissions to read an entity are the same as those used to decide which UI menu items to display. However, sometimes we want to have them different. @mpacary regarding your specific issue:
I just tried this on the latest master - I added the "ReadTaxCategory" permission to the built-in "Inventory Manager" role (which has CRUD on Catalog), and logging in as an admin with that role only shows the tax category menu item as expected: I'm not sure whether this was something that was fixed in a newer version, but if you are able to reproduce the error from a clean install please detail the exact steps. |
Had a similar issue with facets, seller can create facets even though the seller role has only "readFacets" permission. I was able to create the facets using a seller account with no errors. |
Done together with #2903 |
Describe the bug
When I set a role for my seller to ensure that they cannot see the settings or system functionality, the settings and system functionality menus are still displayed at the bottom of the admin ui interface. If a user clicks on these entries they are automatically logged out, and if they don't know any better, subsequent attempts to login will fail as the system will attempt to go to the last url, which was the one that logged them out:
Role settings for bob's parts channel:
Admin dashboard when logged in to bob's parts:
To Reproduce
Login as a seller, by default they should not have permssions to view the system and settings menu, but they will be there.
Expected behavior
I would expect that the system and settings menus would not be there at all.
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: