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