-
-
Couldn't load subscription status.
- Fork 4.6k
fix(provisioning_api): Allow group details access for users with admin delegation #53275
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
Conversation
I don't get how the move from annotation to attribute should be responsible for this? Maybe you didn't read the entire commit when checking the git blame. |
Right, sorry for git-blaming your commit, the issue then is simply the use of the middleware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding #[AuthorizedAdminSetting(settings: Users::class)] should be enough.
…n delegation This fixes an issue where users with "Administration privileges → Users" could not access the groups details endpoint in the provisioning API, resulting in a 403 Forbidden error. There is a problem with adding the `AuthorizedAdminSetting` attribute (middleware) that only allows access to users with Sharing admin privileges. Users with "`Users` admin" privileges should also be able to access group details. Resolves: #52617 Signed-off-by: nfebe <fenn25.fn@gmail.com>
ca148d6 to
b647ca6
Compare
|
/backport to stable31 |
|
/backport to stable30 |
This fixes an issue where users with "Administration privileges → Users" could not access the groups details endpoint in the provisioning API, resulting in a 403 Forbidden error.
There is a problem with adding the
AuthorizedAdminSettingattribute (middleware) that only allows access to users with Sharing admin privileges.Users with "
Usersadmin" privileges should also be able to access group details.Resolves: #52617
Introduced in : #46815