Compare commits

...

2 commits

Author SHA1 Message Date
b58adba4f7
Merge 7fc51e422b into 9100a83044 2024-11-05 18:54:02 +05:00
mrilyew
9100a83044 fix(users/groups): fix 500 if unauthorized 2024-11-05 15:10:12 +03:00

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(),