Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/constants/role.constant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export const ROLES = {
ADMIN: 'admin',
STUDENT: 'student',
USER: 'user',
} as const;
Comment thread
puneet20011 marked this conversation as resolved.

export const ROLE_ERRORS = {
FORBIDDEN: 'Access denied: insufficient role permissions.',
UNAUTHORIZED: 'User must be authenticated.',
} as const;