Liking cljdoc? Tell your friends :D

com.timezynk.cancancan.core


*ability*clj


*restrictors*clj


authorize!clj

(authorize! action object)
(authorize! action object instance)
(authorize! action object instance ability)

authorize-all!clj

(authorize-all! action object instances)
(authorize-all! action object instances ability)

canclj

(can action object)
(can action object pred)
(can action object pred ability)

can?clj

(can? action object)
(can? action object instance)
(can? action object instance ability)

downscopeclj

(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`.
raw docstring

eligibleclj

(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`.
raw docstring

in-scope?clj

(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.
raw docstring

with-abilitycljmacro

(with-ability & body)

wrap-cancanclj

(wrap-cancan handler)

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close