Skip to content

Commit f294429

Browse files
authored
Create role.constant.ts
1 parent e23e73d commit f294429

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/constants/role.constant.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export const ROLES = {
2+
ADMIN: 'admin',
3+
STUDENT: 'student',
4+
USER: 'user',
5+
} as const;
6+
7+
export const ROLE_ERRORS = {
8+
FORBIDDEN: 'Access denied: insufficient role permissions.',
9+
UNAUTHORIZED: 'User must be authenticated.',
10+
}

0 commit comments

Comments
 (0)