Skip to content

Tournament LFG · Permissions

1 module · 2 exports · 1 repository · 18 e2e tests · 1 route

Who may do what in Tournament LFG: 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
MANAGE_INVITATIONS

on LFGGroup

findLookingTeamsByTournamentId
managerIds = row.members
	.filter((member) => member.role !== "REGULAR")
	.map((member) => member.id)

declared by LFGGroup

MANAGE_ROLES

on LFGGroup

findLookingTeamsByTournamentId
ownerIds = row.members
	.filter((member) => member.role === "OWNER")
	.map((member) => member.id)

declared by LFGGroup

EDIT_NOTE

on LFGGroup

findLookingTeamsByTournamentId
ownerIds = row.members
	.filter((member) => member.role === "OWNER")
	.map((member) => member.id)

declared by LFGGroup