Liking cljdoc? Tell your friends :D

metabase.models.permissions-group

A PermissionsGroup is a group (or role) that can be assigned certain permissions. Users can be members of one or more of these groups.

A few 'magic' groups exist: all-users, which predicably contains All Users; admin, which contains all superusers, and metabot, which is used to set permissions for the MetaBot. These groups are 'magic' in the sense that you cannot add users to them yourself, nor can you delete them; they are created automatically. You can, however, set permissions for them.

A `PermissionsGroup` is a group (or role) that can be assigned certain permissions. Users can be members of one or
more of these groups.

A few 'magic' groups exist: `all-users`, which predicably contains All Users; `admin`, which contains all
superusers, and `metabot`, which is used to set permissions for the MetaBot. These groups are 'magic' in the sense
that you cannot add users to them yourself, nor can you delete them; they are created automatically. You can,
however, set permissions for them. 
raw docstring

adminclj

(admin)

Fetch the Administators permissions group, creating it if needed.

Fetch the `Administators` permissions group, creating it if needed.
sourceraw docstring

all-usersclj

(all-users)

Fetch the All Users permissions group, creating it if needed.

Fetch the `All Users` permissions group, creating it if needed.
sourceraw docstring

exists-with-name?clj

(exists-with-name? group-name)

Does a PermissionsGroup with GROUP-NAME exist in the DB? (case-insensitive)

Does a `PermissionsGroup` with GROUP-NAME exist in the DB? (case-insensitive)
sourceraw docstring

membersclj

(members group-or-id)

Return Users that belong to GROUP-OR-ID, ordered by their name (case-insensitive).

Return `Users` that belong to GROUP-OR-ID, ordered by their name (case-insensitive).
sourceraw docstring

metabotclj

(metabot)

Fetch the MetaBot permissions group, creating it if needed.

Fetch the `MetaBot` permissions group, creating it if needed.
sourceraw docstring

PermissionsGroupclj

(PermissionsGroup)
(PermissionsGroup id)
(PermissionsGroup & kvs)

Entity for 'permissions_group' table; instance of PermissionsGroupInstance.

Entity for 'permissions_group' table; instance of PermissionsGroupInstance.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close