-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Roles with the variable name across modules conflict with each other #8469
Comments
AFAIK the permissions are grouped by module |
They are, but the unique control names under them are not. Just by property name. |
if the control names are same this a bug of course, you could send a PR for it |
If the value of your new permission is Permission (claims) values are strings, so creating two permissions with the same value is essentially duplicating the permission. If you want it to have a different permission you would need to give it a different value. |
Feel free to open a PR to fix the id generation. |
When creating a new module to build my own workflows I called Acme.Modules.Workflows, I added a permission class and named a permission "ManageWorkflows". When the Roles screen enumerates the roles to be selected, the checkbox for these roles created a unique id on the page of Checkbox.ManageWorkflows for both the Orchard Workflows module and mine. We Probably need a unique id to underscore the the Module Name or namespace it is coming from. "Acme_ManageWorkflows"
The result is you can't check your permissions properly, it this could potentially trickle down to setting the wrong permissions.
The text was updated successfully, but these errors were encountered: