Skip to content

Commit

Permalink
Do not enable debug mode when logging in as admin
Browse files Browse the repository at this point in the history
  • Loading branch information
aschempp committed Feb 19, 2019
1 parent 2c2cab7 commit af49429
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private function getRedirectResponse(Request $request): RedirectResponse
$jwtManager = $request->attributes->get(JwtManager::ATTRIBUTE);

if ($this->user instanceof BackendUser && $jwtManager instanceof JwtManager) {
$jwtManager->addResponseCookie($response, ['debug' => (bool) $this->user->isAdmin]);
$jwtManager->addResponseCookie($response, ['debug' => false]);
}

return $response;
Expand Down

0 comments on commit af49429

Please sign in to comment.