wire-subsystems-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.TeamInvitationSubsystem.Interpreter

Synopsis

Documentation

data TeamInvitationSubsystemConfig Source #

Instances

Instances details
Arbitrary TeamInvitationSubsystemConfig Source # 
Instance details

Defined in Wire.TeamInvitationSubsystem.Interpreter

Generic TeamInvitationSubsystemConfig Source # 
Instance details

Defined in Wire.TeamInvitationSubsystem.Interpreter

Associated Types

type Rep TeamInvitationSubsystemConfig :: Type -> Type #

Show TeamInvitationSubsystemConfig Source # 
Instance details

Defined in Wire.TeamInvitationSubsystem.Interpreter

type Rep TeamInvitationSubsystemConfig Source # 
Instance details

Defined in Wire.TeamInvitationSubsystem.Interpreter

type Rep TeamInvitationSubsystemConfig = D1 ('MetaData "TeamInvitationSubsystemConfig" "Wire.TeamInvitationSubsystem.Interpreter" "wire-subsystems-0.1.0-8kLXA8DL8T7Joz69IIRPwJ" 'False) (C1 ('MetaCons "TeamInvitationSubsystemConfig" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxTeamSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word32) :*: S1 ('MetaSel ('Just "teamInvitationTimeout") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Timeout)))

toInvitation :: forall r. Member TinyLog r => Text -> ShowOrHideInvitationUrl -> StoredInvitation -> Sem r Invitation Source #

brig used to not store the role, so for migration we allow this to be empty and fill in the default here.

ensurePermissionToAddUser :: (Member GalleyAPIAccess r, Member (Error TeamInvitationSubsystemError) r) => UserId -> TeamId -> Permissions -> Sem r () Source #

Privilege escalation detection (make sure no RoleMember user creates a RoleOwner).

There is some code duplication with ensureNotElevated.