|
@@ -18,4 +18,4 @@ console.log('user :>> ', user);
|
|
|
export default user
|
|
|
|
|
|
const ROLE_MAP: { [key: string]: 'teacher' | 'student' } = { '72': 'teacher', '75': 'teacher', '76': 'student' }
|
|
|
-export const UserRole: 'teacher' | 'student' | 'admin' | 'other' = user.sm_info.sm_id === '739' ? 'admin' : (ROLE_MAP[user.user_role_id] ?? 'other')
|
|
|
+export const UserRole: 'teacher' | 'student' | 'admin' | 'other' = (user.sm_info.sm_id === '739' && user.user_id !== '326366') ? 'admin' : (ROLE_MAP[user.user_role_id] ?? 'other')
|