Liking cljdoc? Tell your friends :D

wagoe.user.shell.tenant-scope

Whose users a request may list and act on (BOU-948, BOU-953).

Whose users a request may list and act on (BOU-948, BOU-953).
raw docstring

list-optionsclj

(list-options request opts)

opts limited to the users request may list, or nil when none. The resolved tenant wins; without one a platform admin lists everyone, anyone else their own tenant (or none).

`opts` limited to the users `request` may list, or nil when none. The resolved
tenant wins; without one a platform admin lists everyone, anyone else their own tenant (or none).
sourceraw docstring

lists?clj

(lists? request user)

Whether user is one that request may list.

Whether `user` is one that `request` may list.
sourceraw docstring

new-user-tenantclj

(new-user-tenant request)

What a user request creates is given: {:tenant-id t}, {} for no tenant, or nil when it may create none. A tenant's admin creates in their tenant, so a role it grants stays there.

What a user `request` creates is given: `{:tenant-id t}`, `{}` for no tenant, or nil
when it may create none. A tenant's admin creates in their tenant, so a role it grants stays there.
sourceraw docstring

reachable-userclj

(reachable-user user-service request id)

The user id names, when request may reach them; else nil.

The user `id` names, when `request` may reach them; else nil.
sourceraw docstring

reaches-everyone?clj

(reaches-everyone? request)

Whether request may act on any user, so there is no one to look up.

Whether `request` may act on any user, so there is no one to look up.
sourceraw docstring

reaches?clj

(reaches? request user)

Whether request may act on user: the caller themselves, or one it may list.

Whether `request` may act on `user`: the caller themselves, or one it may list.
sourceraw docstring

wrap-target-userclj

(wrap-target-user user-service)

Middleware for a route whose :id names a user: a user request may not reach answers 404, as one that does not exist. A caller who reaches everyone is not checked, so a soft-deleted user, whom no lookup finds, can still be erased.

Middleware for a route whose `:id` names a user: a user `request` may not
reach answers 404, as one that does not exist. A caller who reaches everyone
is not checked, so a soft-deleted user, whom no lookup finds, can still be erased.
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