Skip to content

Commit c835045

Browse files
committed
fix: admins have super access
1 parent 5f5b19d commit c835045

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apps/api/src/lib/roles.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ export function hasPermission(
2626
requireAll: boolean = true
2727
): boolean {
2828
// Admins have all permissions
29-
// if (user?.isAdmin) {
30-
// return true;
31-
// }
29+
if (user?.isAdmin) {
30+
return true;
31+
}
3232

3333
// Convert single permission to array for consistent handling
3434
const permissions = Array.isArray(requiredPermissions)

0 commit comments

Comments
 (0)