Liking cljdoc? Tell your friends :D
Clojure only.

framework.acl.core-functions


granteeclj

(grantee permissions {:keys [role resource privilege]})
source

has-accessclj

(has-access permissions access)
(has-access permissions user access)

Examine if the user is has access to a resource with the provided action. If it has, returns anything what is provided in ':acl/roles' corresponding ::over field. If isn't then returns "false" ':acl/roles' is a map keyed by name of :acl/roles. 'user' is optional, but if it missing you must provide the 'role' field in action. 'access' defines the role, resource and privilege what needs to be achieved. If user is provided, the role will be resolved from it.

Examine if the user is has access to a resource with the provided action.
If it has, returns anything what is provided in ':acl/roles' corresponding ::over field.
If isn't then returns "false"
':acl/roles' is a map keyed by name of :acl/roles.
'user' is optional, but if it missing you must provide the 'role' field in action.
'access' defines the role, resource and privilege what needs to be achieved.
If user is provided, the role will be resolved from it.
sourceraw docstring

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

× close