Skip to content

Commit 066656a

Browse files
committed
Update Impersonate.php
1 parent 3fee5bc commit 066656a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Middleware/Impersonate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function handle($request, Closure $next)
1515
->where('auth_as', '!=', '');
1616
})->first();
1717

18-
if ($adminUser && is_numeric($adminUser)) {
18+
if ($adminUser && is_numeric($adminUser->auth_as)) {
1919

2020
$originalUser = $adminUser->id;
2121

0 commit comments

Comments
 (0)