Skip to content

Chat · Permissions

9 modules · 32 exports · 1 repository · 16 e2e tests · 5 routes

Who may do what in Chat: the per-object permissions it builds with every place checking them, and the checks in its code. See Permissions for how authorization works and the reference for every role and feature.

Granted here

Built at read time into what the functions return, a list of the user ids holding each permission. Checks are listed wherever they are, other features' included.

PermissionGranted byChecked in
VIEW

on ResolvedRoom

declared by ResolvedRoom

joinOwners → permissionsOf
closed ? OBSERVE : R.unique([...args.participantUserIds, ...OBSERVE])
POST

on ResolvedRoom

declared by ResolvedRoom

joinOwners → permissionsOf
closed || expired
	? []
	: R.unique([
			...args.participantUserIds,
			...(observersMayPost ? OBSERVE : []),
		])
OBSERVE

on ResolvedRoom

declared by ResolvedRoom

joinOwners → permissionsOf
OBSERVE = R.unique([...args.observerUserIds, ...SITE_MODERATOR_IDS])