(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |