templates #11
@@ -143,7 +143,7 @@ const AcceptInvitation = () => {
|
|||||||
|
|
||||||
// Redirect based on role
|
// Redirect based on role
|
||||||
if (user.role === 'admin' || user.role === 'superadmin') {
|
if (user.role === 'admin' || user.role === 'superadmin') {
|
||||||
navigate('/admin/dashboard');
|
navigate('/admin');
|
||||||
} else {
|
} else {
|
||||||
navigate('/dashboard');
|
navigate('/dashboard');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user