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

User with only client authority to edit roles can still add global authorities to role #5837

Open
pontus-osterdahl opened this issue Nov 14, 2023 · 0 comments
Labels

Comments

@pontus-osterdahl
Copy link
Contributor

Describe the bug
We have "client-power-users" who are able to create and edit users and roles for the client but not globally.
We assign these users the client authorities

  • deleteRole_clientAssignable
  • editRole_clientAssignable
  • addRole_clientAssignable

but not the corresponding global authorities.
However, these users are still able to assign global authorities to roles.
Not sure if this should be classified as a bug, but to me it does not seem to be the desired behaviour.

To Reproduce
Steps to reproduce the behavior:

  1. Create a User with client authortiy to edit roles.
  2. Log in as this user.
  3. Edit a role.
  4. You are able to add global authorities to the user.

Expected behavior
A user with only the client authority for editing roles should not be able to add global authorities to a role. As a solution a check for the global edit role authority could be added to roleEdit/details.xhtml. If the user only has the client authority, the global authorties should not be shown.

Release
3.5.0

@pontus-osterdahl pontus-osterdahl changed the title User without only client authority to edit roles can still add global authorities to role User with only client authority to edit roles can still add global authorities to role Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant