Skip to content

Commit

Permalink
Merge pull request #37 from pravk/patch-1
Browse files Browse the repository at this point in the history
Update Impersonate.php
  • Loading branch information
KABBOUCHI authored Dec 30, 2018
2 parents 7bbf5a1 + 395cd3b commit e4158d6
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 e4158d6

Please sign in to comment.