feat: allow SUPER_ADMIN role for admin access and update modal background opacity class.
This commit is contained in:
@@ -37,8 +37,8 @@ class AuthService {
|
||||
|
||||
const authData = response.data.data;
|
||||
|
||||
// Check if user is ADMIN
|
||||
if (authData.user.role !== 'ADMIN') {
|
||||
// Check if user is ADMIN or SUPER_ADMIN
|
||||
if (authData.user.role !== 'ADMIN' && authData.user.role !== 'SUPER_ADMIN') {
|
||||
throw new Error('Access denied. Admin privileges required.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user