Support super manager access

This commit is contained in:
Ruslan Bakiev
2026-04-04 09:41:36 +07:00
parent ecd92ef7e4
commit ad0bae79e8
8 changed files with 136 additions and 17 deletions

5
app/utils/roles.ts Normal file
View File

@@ -0,0 +1,5 @@
import { UserRole } from '~/composables/graphql/generated';
export function hasManagerAccess(role?: UserRole | null) {
return role === UserRole.Manager || role === UserRole.SuperManager;
}