Skip to content

Custom 2FA permission for non-superusers - #281

Open
katdom13 wants to merge 2 commits into
labd:masterfrom
torchbox-forks:stable/custom-2fa-permission
Open

Custom 2FA permission for non-superusers#281
katdom13 wants to merge 2 commits into
labd:masterfrom
torchbox-forks:stable/custom-2fa-permission

Conversation

@katdom13

Copy link
Copy Markdown
Contributor
  • A project we're working on wanted some of their user groups to be able to manage other users' 2FA devices without granting full superuser access. This adds a narrower manage_2fa_devices permission
    (configurable via the new WAGTAIL_2FA_MANAGE_DEVICES_PERMISSION setting).
  • Removes the hard-coded check against the built-in User model's change_user permission. Permission checks now derive from the project's actual AUTH_USER_MODEL, so this works correctly for projects using a
    custom user model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant