Redirect wasn't working properly
This commit is contained in:
@@ -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