Skip to content

Conversation

@dcramer
Copy link
Member

@dcramer dcramer commented Oct 27, 2021

This also adjusts several code paths to use the new has_superuser_permission helper, and in doing so more correctly locks down certain code paths to admins only (vs superusers only).

Fixes #29609

This also adjusts several code paths to use the new `has_superuser_permission` helper.
Copy link
Member

@markstory markstory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@dcramer dcramer merged commit 65ff4f2 into master Oct 28, 2021
@dcramer dcramer deleted the feat/lock-down-user-deletes branch October 28, 2021 18:40
@github-actions github-actions bot locked and limited conversation to collaborators Nov 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor is_active_superuser helper to allow passing UserPermission checks

3 participants