Skip to content

Commit

Permalink
add check superU
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Sep 5, 2023
1 parent 4354605 commit 9563fca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/Alchemy/Phrasea/Controller/Admin/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,11 @@ public function displayAuthFailureAction(Request $request)

public function deleteAuthFailureAction(Request $request)
{
$this->app['auth.native.failure-manager']->removeFailureById($request->request->get('failureId'));
if ($this->getAuthenticatedUser()->isAdmin()) {
$this->app['auth.native.failure-manager']->removeFailureById($request->request->get('failureId'));
}

return $this->render('admin/auth-failure.html.twig', [
]);
return $this->render('admin/auth-failure.html.twig', []);
}

public function submitRegistrationAction(Request $request)
Expand Down

0 comments on commit 9563fca

Please sign in to comment.