Liking cljdoc? Tell your friends :D

dgknght.app-lib.authorization


+scopeclj

(+scope criteria user)
(+scope criteria model-type user)

allowed?cljmultimethod

Returns a truthy or falsey value indicating whether or not the authenticated user is allowed to perform the specified action on the specified model

Returns a truthy or falsey value indicating whether or not the
authenticated user is allowed to perform the specified
action on the specified model
raw docstring

authorizeclj

(authorize model action user)

Raises an error if the current user does not have permission to perform the specified function.

This function returns the model so that it can be threaded together with other left-threadable operations

Raises an error if the current user does not have
permission to perform the specified function.

This function returns the model so that it can be threaded together
with other left-threadable operations
raw docstring

denied?clj


opaque?clj

(opaque? error)

scopecljmultimethod

Returns a criteria structure limiting the scope of a query to that to which the specified user has access.

Returns a criteria structure limiting the scope
of a query to that to which the specified user
has access.
raw docstring

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

× close