Liking cljdoc? Tell your friends :D
Clojure only.

wagoe.user.core.revoke

Taking one permission away from a user (BOU-1001). Rights come only through groups, so each way ends a membership or an assignment; options are ranked by what else they take, read from their previews.

Taking one permission away from a user (BOU-1001). Rights come only
through groups, so each way ends a membership or an assignment; options
are ranked by what else they take, read from their previews.
raw docstring

gives?clj

(gives? assignment path)

Whether path, a right as explain gives it, comes from assignment of its group: the same role and stored scope.

Whether `path`, a right as explain gives it, comes from `assignment` of
its group: the same role and stored scope.
sourceraw docstring

rankclj

(rank options permission paths)

options, [{:kind :group :assignment :preview ..}], each given :removes?, whether it ends every one of paths, the rights giving the permission, so the user no longer holds it in any scope; :also-loses, the user's other losses; and :radius, those and the other users it reaches. The ones that remove it first, then the smallest, a leave before an assignment on a tie; a refused one, with no preview, last.

`options`, [{:kind :group :assignment :preview ..}], each given `:removes?`,
whether it ends every one of `paths`, the rights giving the permission, so
the user no longer holds it in any scope; `:also-loses`, the user's other
losses; and `:radius`, those and the other users it reaches. The ones that
remove it first, then the smallest, a leave before an assignment on a tie;
a refused one, with no preview, last.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close