Liking cljdoc? Tell your friends :D

dgknght.app-lib.authorization


+scopeclj

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

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
sourceraw 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
sourceraw docstring

denied?clj

source

opaque?clj

(opaque? error)
source

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.
sourceraw docstring

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

× close