feat: allow SUPER_ADMIN role for admin access and update modal background opacity class.

This commit is contained in:
pradeepkumar
2026-03-20 17:15:52 +05:30
parent 237f9166f4
commit d2cef0cdae
2 changed files with 3 additions and 3 deletions

View File

@@ -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.');
}