module

Praetorian

Constants

VERSION = "0.3.1"

Macros

authorise(user, object, query, policy_class)

Same as .authorize

Source
authorise(user, object, query)
Source
authorize(user, object, query, policy_class)

Retrieves the policy for the given object, initializing it with the object and user and finally throwing an error if the user is not authorized to perform the given action.

Source
authorize(user, object, query)
Source
check_auth(query, object, policy)

Performs actual policy query check

Source

Nested types