dfunckt / django-rules

Awesome Django authorization, without the database

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MaybeThisIsRu opened this issue · comments

commented

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?

commented

I think a similar enhancement was being discussed in #63