django-rules icon indicating copy to clipboard operation
django-rules copied to clipboard

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

Open MaybeThisIsRu opened this issue 3 years ago • 1 comments

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 avatar Apr 13 '22 12:04 MaybeThisIsRu

I think a similar enhancement was being discussed in #63

MaybeThisIsRu avatar Apr 13 '22 12:04 MaybeThisIsRu