Derive database query restrictions from abilities.
Derive database query restrictions from abilities.
(_! x)(_& x & xs)(_| x & xs)(compile restriction user roles1 modules)Curries restriction functions with user, roles1 and modules to produce
functions which work on [action object instance] arguments.
Curries restriction functions with `user`, `roles1` and `modules` to produce functions which work on `[action object instance]` arguments.
(defrestriction & xs)Expands each of its arguments into an implementation of make.
Uses the first three parameters as dispatch values.
Uses the fourth as return value.
Expands each of its arguments into an implementation of `make`. Uses the first three parameters as dispatch values. Uses the fourth as return value.
(from-ability action object scope)Converts an ability (i.e. action / object / scope triplet) to a restriction.
Converts an ability (i.e. action / object / scope triplet) to a restriction.
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 |