Redirect wasn't working properly
This commit is contained in:
1 parent
148d85121a
commit
cf5d107fd5
1 file changed
+2
-2
@@ -69,9 +69,9 @@ class ServicesProvider
|
|||||||
$currentUser = $c->authenticator->user();
|
$currentUser = $c->authenticator->user();
|
||||||
|
|
||||||
if ($authorizer->checkAccess($currentUser, 'uri_dashboard')) {
|
if ($authorizer->checkAccess($currentUser, 'uri_dashboard')) {
|
||||||
return $response->withHeader('UF-Redirect', $c->router->pathFor('dashboard'));
|
return $response->withRedirect($c->router->pathFor('dashboard'));
|
||||||
} else {
|
} else {
|
||||||
return $response->withHeader('UF-Redirect', $c->router->pathFor('index'));
|
return $response->withRedirect($c->router->pathFor('index'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user