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.
(admin)
Fetch the Administators
permissions group, creating it if needed.
Fetch the `Administators` permissions group, creating it if needed.
(all-users)
Fetch the All Users
permissions group, creating it if needed.
Fetch the `All Users` permissions group, creating it if needed.
(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)
(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).
(metabot)
Fetch the MetaBot
permissions group, creating it if needed.
Fetch the `MetaBot` permissions group, creating it if needed.
(PermissionsGroup)
(PermissionsGroup id)
(PermissionsGroup & kvs)
Entity for 'permissions_group' table; instance of PermissionsGroupInstance.
Entity for 'permissions_group' table; instance of PermissionsGroupInstance.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close