Update Impersonate.php
This commit is contained in:
parent
87acd3fd08
commit
3fee5bc334
|
@ -15,7 +15,7 @@ class Impersonate
|
||||||
->where('auth_as', '!=', '');
|
->where('auth_as', '!=', '');
|
||||||
})->first();
|
})->first();
|
||||||
|
|
||||||
if ($adminUser) {
|
if ($adminUser && is_numeric($adminUser)) {
|
||||||
|
|
||||||
$originalUser = $adminUser->id;
|
$originalUser = $adminUser->id;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue