Update Impersonate.php

This commit is contained in:
Julian Prieber 2023-07-13 19:01:16 +02:00
parent 87acd3fd08
commit 3fee5bc334
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ class Impersonate
->where('auth_as', '!=', '');
})->first();
if ($adminUser) {
if ($adminUser && is_numeric($adminUser)) {
$originalUser = $adminUser->id;