Liking cljdoc? Tell your friends :D

wagoe.user.shell.access-filter

Who the user list's access filters admit (BOU-1002): the users holding a permission, in a group or holding a role, read through the group service in the tenant it is bound to.

Who the user list's access filters admit (BOU-1002): the users holding a
permission, in a group or holding a role, read through the group service
in the tenant it is bound to.
raw docstring

admittedclj

(admitted user-service group-service {:keys [permission group role]} platform?)

For filters, {:permission :group :role} as parsed, the user ids they all admit as :ids, nil when any user may be, and what the permission filter found among them: :found {:permission {:everyone? :provided :platform-admins}}. Platform admins count only when platform?: a tenant lists none. A group or role that does not exist admits nobody.

For `filters`, {:permission :group :role} as parsed, the user ids they all
admit as `:ids`, nil when any user may be, and what the permission filter
found among them: `:found` {:permission {:everyone? :provided
:platform-admins}}. Platform admins count only when `platform?`: a tenant
lists none. A group or role that does not exist admits nobody.
sourceraw docstring

choicesclj

(choices group-service)

What the filters offer in the groups group-service/in-tenant binds: the declared permissions, the groups and the roles, by name.

What the filters offer in the groups `group-service/in-tenant` binds: the
declared permissions, the groups and the roles, by name.
sourceraw docstring

find-usersclj

(find-users user-service
            group-service
            tenant-id
            {:keys [permission group has-role]})

admitted for filters as parse gives them, in the groups group-service/in-tenant binds; tenant-id nil is a platform admin outside any tenant.

`admitted` for `filters` as `parse` gives them, in the groups
`group-service/in-tenant` binds; `tenant-id` nil is a platform admin
outside any tenant.
sourceraw docstring

offered?clj

(offered? group-service user)

Whether the caller may filter on groups here: their groups are kept per tenant, or they are a platform admin, as the group pages decide.

Whether the caller may filter on groups here: their groups are kept per
tenant, or they are a platform admin, as the group pages decide.
sourceraw docstring

paramsclj

The query parameters the access filters read: role is already the user's admin role, so a role from the Roles page is has-role.

The query parameters the access filters read: `role` is already the
user's admin role, so a role from the Roles page is `has-role`.
sourceraw docstring

parseclj

(parse query-params)

The access filters query-params give, {:permission :group :has-role}, blank ones left out, as the URL holds them.

The access filters `query-params` give, {:permission :group :has-role},
blank ones left out, as the URL holds them.
sourceraw docstring

platform-adminsclj

(platform-admins user-service)

The platform admins, who pass every check: admins of no tenant.

The platform admins, who pass every check: admins of no tenant.
sourceraw docstring

with-groupsclj

(with-groups group-service tenant-id users)

users, each with :groups, those they are in, read in their own tenant; a group of tenant-id, the one the caller works in, links to its page.

`users`, each with `:groups`, those they are in, read in their own tenant;
a group of `tenant-id`, the one the caller works in, links to its page.
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