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

Django: how does one know which permission failed on a particular request? #169

Open
MaybeThisIsRu opened this issue Apr 13, 2022 · 1 comment

Comments

@MaybeThisIsRu
Copy link

Since permission_required takes a tuple, I imagined it would follow that which one of the permissions specified failed would also be available to us. This way, one is able to specify a tailor-made error message that is helpful to the end-user.

Any thoughts/direction for this one?

@MaybeThisIsRu
Copy link
Author

MaybeThisIsRu commented Apr 13, 2022

I think a similar enhancement was being discussed in #63

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