org-SCAN / website

Site web du projet
6 stars 0 forks source link

[COUSSIN]User shouldn't be able to change his own role #398

Open lduf opened 1 year ago

lduf commented 1 year ago

Cushion description User shouldn't be able to change his own role.

Exemple : user management role : can do * in user but nothing else. He can change his role to another one and then bypass the system.

Expected behavior Do not allow any user to change his own role. The user SHOULD ask for a new role through the request role pannel. Also a user can't accept its own request.

Additional information Ø

github-actions[bot] commented 9 months ago

AI-Assisted Response:

Summary

Issue Title: Restrict Users from Changing Their Own Role

Currently, within the user management system, users are given the ability to modify their own roles. For example, a user with the "user management" role is permitted to perform all actions within the user domain but should not have access to other permissions. However, this user can switch their role to another one and, as a result, circumvent the intended permission limitations.

Expected Behavior: The system needs to be updated to prohibit users from self-assigning roles. Requests for role changes should be made through the designated "request role" panel, and a user must not be allowed to approve their own role change requests.

Issue Category

Questions for Further Clarification