RBAC, Permissions, and Export/Import
This commit is contained in:
@@ -42,7 +42,7 @@ const Login = () => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (user.role === 'admin') {
|
||||
if (user.role === 'admin' || user.role === 'superadmin') {
|
||||
navigate('/admin');
|
||||
} else {
|
||||
navigate('/dashboard');
|
||||
|
||||
Reference in New Issue
Block a user