Skip to content

Commit

Permalink
fixes #43
Browse files Browse the repository at this point in the history
  • Loading branch information
KABBOUCHI committed Jan 23, 2019
1 parent 74ab176 commit 273cabe
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Impersonate.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public function __construct($user = null)
{
parent::__construct(null, null, null);

$this->exceptOnForms();

if (method_exists(auth()->user(), 'canImpersonate') && !auth()->user()->canImpersonate()) {
$this->component = null;

Expand Down Expand Up @@ -48,9 +50,5 @@ public function __construct($user = null)
'redirect_to' => config('nova-impersonate.redirect_to'),
]);


$this->exceptOnForms();


}
}

0 comments on commit 273cabe

Please sign in to comment.