Skip to content

Custom permission middleware removes Enable 2fa from group permissions #118

@martinjobb

Description

@martinjobb

Thanks for a great app!

I needed to extend wagtail_2fa.middleware.VerifyUserPermissionsMiddleware to make it work in a headless context and it made the register_permissions hook not fire.

I think it's this line https://github.com/labd/wagtail-2fa/blob/master/src/wagtail_2fa/wagtail_hooks.py#L72.

I implemented a custom hook that did basically the same thing, but it would be nice if possible to make a more generic check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions