Redirect wasn't working properly
This commit is contained in:
@@ -67,11 +67,11 @@ class ServicesProvider
|
|||||||
$authorizer = $c->authorizer;
|
$authorizer = $c->authorizer;
|
||||||
|
|
||||||
$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