Skip to content

Commit 273cabe

Browse files
committed
fixes #43
1 parent 74ab176 commit 273cabe

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/Impersonate.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public function __construct($user = null)
1919
{
2020
parent::__construct(null, null, null);
2121

22+
$this->exceptOnForms();
23+
2224
if (method_exists(auth()->user(), 'canImpersonate') && !auth()->user()->canImpersonate()) {
2325
$this->component = null;
2426

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

51-
52-
$this->exceptOnForms();
53-
54-
5553
}
5654
}

0 commit comments

Comments
 (0)