-
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
Custom roles overwritten after upgrading to OC 2.1.x #17216
Comments
Did any of the roles Also it would be great if you can provide reproduction steps. Do you import a recipe? |
Roles are not assigned any permissions, including OwnerPermission. Steps to reproduce:
|
This is a security critical bug, it adds users to the admin role during migration unintentionally! Note that it looks like PR #17089 also added the same buggy behavior here too, because the |
It is a bad security bug that will needs to be patched today.
It actually has nothing to do with that PR. It's a bug introduced by the original PR https://github.com/OrchardCMS/OrchardCore/pull/16781/files#diff-b72d3d57af6cb699ce3d2df36090731745456797fac627681ae3714a08c85cb9R44-R47 |
You're right, I got confused by reading |
Thank you! |
I am using custom roles where RoleClaims is empty (director, sales manager):
After upgrading to Orchard Core 2.1.x (from 2.0.2), I noticed that all users are assigned the
Administrator
role.I suspect the issue is related to the following line of code:
OrchardCore/src/OrchardCore.Modules/OrchardCore.Roles/Migrations/RolesMigrations.cs
Line 46 in 4ab7c34
The text was updated successfully, but these errors were encountered: