Skip to content

Commit 3fee5bc

Browse files
committed
Update Impersonate.php
1 parent 87acd3f commit 3fee5bc

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) {
18+
if ($adminUser && is_numeric($adminUser)) {
1919

2020
$originalUser = $adminUser->id;
2121

0 commit comments

Comments
 (0)