feat(server): support editor -> viewer seat downgrades (#4181)
* new seat based project role checks implemented * everything done * minor bugfix
This commit is contained in:
committed by
GitHub
parent
50fd05afe8
commit
d903e8ffc4
@@ -56,6 +56,10 @@ export const joinWorkspaceFactory =
|
||||
})
|
||||
await emitWorkspaceEvent({
|
||||
eventName: WorkspaceEvents.RoleUpdated,
|
||||
payload: { acl: { userId, workspaceId, role }, seatType: type }
|
||||
payload: {
|
||||
acl: { userId, workspaceId, role },
|
||||
seatType: type,
|
||||
updatedByUserId: userId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user