Skip to content

Commit

Permalink
Update Impersonate.php
Browse files Browse the repository at this point in the history
reversing the order check to prevent 419 errors in case of multi auth guard scenario
  • Loading branch information
pravk authored Dec 30, 2018
1 parent 7bbf5a1 commit 395cd3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Http/Middleware/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ public function handle($request, $next)
$manager = app()->make(ImpersonateManager::class);

if (
auth()->check() &&

$manager->isImpersonating() &&

auth()->check() &&

!($response instanceof RedirectResponse) &&

Expand Down

0 comments on commit 395cd3b

Please sign in to comment.