(has-any-permission? m perm)
(has-any-permission? m role-key perm-key perm)
(init-roles role-map)
(init-roles role-map permission-resolver role-resolver)
Takes your systems role definitions which is a map where the keys are the role names and the value is a set of permissions (either as permission records or as strings that can be converted into a permission. This needs to be initialized PRIOR to any permission checks.
Takes your systems role definitions which is a map where the keys are the role names and the value is a set of permissions (either as permission records or as strings that can be converted into a permission. This needs to be initialized PRIOR to any permission checks.
(lacks-all-permissions? m perm)
(lacks-all-permissions? m role-key perm-key perm)
(roles->permissions roles)
Resolves a seq of roles into ints contained permissions. If a role contains other roles as values, will recursively resolve these until it ends up at the leafes, the permissions.
Resolves a seq of roles into ints contained permissions. If a role contains other roles as values, will recursively resolve these until it ends up at the leafes, the permissions.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close