fix(users/groups): fix 500 if unauthorized

This commit is contained in:
mrilyew 2024-11-05 15:10:12 +03:00
parent 3c53564d57
commit 9100a83044

View file

@ -5,8 +5,11 @@ use openvk\Web\Models\Entities\User;
trait TIgnorable
{
function isIgnoredBy(User $user): bool
function isIgnoredBy(User $user = NULL): bool
{
if(!$user)
return false;
$ctx = DatabaseConnection::i()->getContext();
$data = [
"owner" => $user->getId(),