Liking cljdoc? Tell your friends :D

framework.acl.builder.builder-functions


->permissionclj

(->permission {a :actions r :over :as p})
source

add-actionsclj

(add-actions available-permissions action-map)
source

allowclj

(allow roles
       {:keys [role resource actions over] :or {over :all} :as permission})
(allow roles available-permissions permission)

Allows a permission for a role, inserts it into the :acl/roles map. If (:actions permission) or (:actions :roles) keys contains :all it's going to be [:all]

Allows a permission for a role, inserts it into the :acl/roles map.
If (:actions permission) or (:actions :roles) keys contains :all it's going to be [:all]
sourceraw docstring

bulk-revokeclj

(bulk-revoke permissions-by-resource actions-vec)
source

collifyclj

(collify x)
source

collify-valsclj

(collify-vals m)
source

denyclj

(deny roles available-permissions {:keys [role resource actions]})

Denies an access for a user/group on a resource If a role contains :actions [:all] and no available permissions provided for that resource, it will delete the role

Denies an access for a user/group on a resource
If a role contains :actions [:all]
and no available permissions provided for that resource,
it will delete the role
sourceraw docstring

distinct-concatclj

(distinct-concat x y)
source

grantclj

(grant {actions :actions :as permission} action)
source

override-actionsclj

(override-actions available-permissions action-map)
source

remove-resourceclj

(remove-resource available-permissions resource)
source

replace-roleclj

(replace-role roles old new)
source

revokeclj

(revoke {actions :actions :as permission} action)
source

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

× close