(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]
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close