(authorize! action object)
(authorize! action object instance)
(authorize! action object instance ability)
(authorize-all! action object instances)
(authorize-all! action object instances ability)
(can action object)
(can action object pred)
(can action object pred ability)
(can? action object)
(can? action object instance)
(can? action object instance ability)
(downscope action object instance)
If action
on object
has been registered, restricts instance
to the
subset of eligible entities. Otherwise, returns instance
.
If `action` on `object` has been registered, restricts `instance` to the subset of eligible entities. Otherwise, returns `instance`.
(eligible action object restrictor)
Declares that action
is permissible to entities gotten by restricting
the object
query with restrictor
.
Declares that `action` is permissible to entities gotten by restricting the `object` query with `restrictor`.
(in-scope?)
True if the calling code and the calling thread have been primed for authorization checks, false otherwise.
Priming for authorization involves a series of cancan/can calls within a cancan/with-ability scope.
True if the calling code and the calling thread have been primed for authorization checks, false otherwise. Priming for authorization involves a series of cancan/can calls within a cancan/with-ability scope.
(with-ability & body)
(wrap-cancan handler)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |