-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(staff): Let staff access user details endpoint (#64631)
This endpoint is open to people viewing themselves, superuser, and staff There is logic inside PUT and delete that changes depending on which mode you are. Right now: 1. PUT - Superuser can change users to be superuser or staff if they have `users.admin` 2. DELETE - Superusers can hard delete users if they have `users.admin` We want to prevent superusers in the future from being able to do this, but allow staff because these actions are only performed through the _admin portal When checking for `users.admin`, once the feature flag is removed we'll include an explicit check for `is_active_staff` to achieve this.
- Loading branch information
Showing
4 changed files
with
265 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.