Redirect wasn't working properly

This commit is contained in:
bwilliams committed 2023-10-09 16:35:03 +01:00
1 parent 148d85121a
commit cf5d107fd5
1 file changed
+2 -2
+2 -2
View File
@@ -69,9 +69,9 @@ class ServicesProvider
$currentUser = $c->authenticator->user();
if ($authorizer->checkAccess($currentUser, 'uri_dashboard')) {
return $response->withHeader('UF-Redirect', $c->router->pathFor('dashboard'));
return $response->withRedirect($c->router->pathFor('dashboard'));
} else {
return $response->withHeader('UF-Redirect', $c->router->pathFor('index'));
return $response->withRedirect($c->router->pathFor('index'));
}
};
};