backend-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

UserManagement.Statements

Synopsis

Documentation

getAllUsers :: Statement () [User] Source #

deleteUser :: Statement UserID () Source #

checkGroupMembership :: Statement (UserID, GroupID) Bool Source #

Checks if User has any role in Group and returns True or False

updateUserName :: Statement (Text, UserID) () Source #

updateUserEmail :: Statement (Text, UserID) () Source #

updateUserPWHash :: Statement (Text, UserID) () Source #

deleteGroup :: Statement GroupID () Source #

updateGroupName :: Statement (Text, GroupID) () Source #

addRole :: Statement (UserID, GroupID, Text) () Source #

getMembersOfGroup :: Statement Int64 [UserInfo] Source #

get all Users that have any role in the given group

addSuperadmin :: Statement UserID () Source #

checkGroupPermission :: Statement (UserID, DocumentID) Bool Source #

check if User is Member (or Admin) of the group that owns the specified document

getExternalPermission :: Statement (UserID, DocumentID) (Maybe Permission) Source #

extract the Permission for external document editors if they exist

getDocumentGroupID :: Statement DocumentID (Maybe GroupID) Source #

get the group id of a given document. the maybe is only technical and should never be Nothing in practice.

cleanupExpiredTokens :: Statement () () Source #