Enforce team role hierarchy on user updates and removals

This commit is contained in:
Mike Cao committed 2026-06-02 21:32:34 -07:00
1 parent 0f36990040
commit 46819a4443
2 files changed
+30

No files matched your search

+7
View File
@@ -180,6 +180,13 @@ export const ROLES = {
teamViewOnly: 'team-view-only',
} as const;
export const TEAM_ROLE_RANK: Record<string, number> = {
[ROLES.teamViewOnly]: 0,
[ROLES.teamMember]: 1,
[ROLES.teamManager]: 2,
[ROLES.teamOwner]: 3,
} as const;
export const PERMISSIONS = {
all: 'all',
websiteCreate: 'website:create',