Update Impersonate.php

This commit is contained in:
Julian Prieber 2023-07-13 19:25:00 +02:00
parent 3fee5bc334
commit 066656a073

View File

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