Skip to content

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

@MaybeThisIsRu

Description

@MaybeThisIsRu

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions