Skip to content
Snippets Groups Projects
Commit 6622dd17 authored by Jonathan Foucher's avatar Jonathan Foucher
Browse files

composer update + phpstan fix

parent bd177801
No related branches found
No related tags found
No related merge requests found
Pipeline #40342 passed
......@@ -60,7 +60,7 @@ public function impersonate(Request $request)
/** @var User $currentUser */
$currentUser = Auth::user();
if ($currentUser && $currentUser->active && User::ROLE_ADMIN === $currentUser->role) {
if ($currentUser->active && User::ROLE_ADMIN === $currentUser->role) {
/** @var User $user */
$user = User::find($id);
if ($user->active) {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment