feat(server): support editor -> viewer seat downgrades (#4181)

* new seat based project role checks implemented

* everything done

* minor bugfix
This commit is contained in:
Kristaps Fabians Geikins
2025-03-14 14:21:25 +02:00
committed by GitHub
parent 50fd05afe8
commit d903e8ffc4
30 changed files with 975 additions and 337 deletions
@@ -34,6 +34,7 @@ type WorkspaceRoleUpdatedPayload = {
acl: Pick<WorkspaceAcl, 'userId' | 'workspaceId' | 'role'>
seatType: WorkspaceSeatType
flags?: { skipProjectRoleUpdatesFor: string[] }
updatedByUserId: string
}
type WorkspaceJoinedFromDiscoveryPayload = {
userId: string