Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
martinjobb opened this issue Feb 3, 2021 · 0 comments
Open

Comments

@martinjobb
Copy link

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.

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

No branches or pull requests

1 participant