We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 74ab176 commit 273cabeCopy full SHA for 273cabe
1 file changed
src/Impersonate.php
@@ -19,6 +19,8 @@ public function __construct($user = null)
19
{
20
parent::__construct(null, null, null);
21
22
+ $this->exceptOnForms();
23
+
24
if (method_exists(auth()->user(), 'canImpersonate') && !auth()->user()->canImpersonate()) {
25
$this->component = null;
26
@@ -48,9 +50,5 @@ public function __construct($user = null)
48
50
'redirect_to' => config('nova-impersonate.redirect_to'),
49
51
]);
52
-
- $this->exceptOnForms();
53
54
55
}
56
0 commit comments