Os.GroupSourceGroups of users. Groups are sets of users. Groups and group members are saved in database. Groups are used by OS for example to restrict access to pages or server functions.
Exception raised when no there is no group corresponding to the request (for example wrong ID or name).
Type alias to Types.Group.id to allow to use Group.id.
Type alias to Types.Group.t to allow to use Group.t.
id_of_group group returns the group ID.
name_of_group group returns the group name.
desc_of_group group returns the group description.
create ~description name creates a new group in the database and returns it as a record of type Types.Group.t.
Overwrites the function group_of_name of Db.Group and use the get function of the cache module.
add_user_in_group ~group ~userid adds the user with ID userid to group.
remove_user_in_group ~group ~userid removes the user with ID userid from group.
val in_group :
?dbh:Db.PGOCaml.pa_pg_data Db.PGOCaml.t ->
group:Types.Group.t ->
userid:Types.User.id ->
unit ->
bool Lwt.tin_group ~group ~userid returns true if the user with ID userid is in group.
all () returns all the groups of the database.