Compare commits

...

2 commits

Author SHA1 Message Date
koke228666
ac1e831dea
Merge de8f00749e into 9100a83044 2024-11-06 15:17:39 +03: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 trait TIgnorable
{ {
function isIgnoredBy(User $user): bool function isIgnoredBy(User $user = NULL): bool
{ {
if(!$user)
return false;
$ctx = DatabaseConnection::i()->getContext(); $ctx = DatabaseConnection::i()->getContext();
$data = [ $data = [
"owner" => $user->getId(), "owner" => $user->getId(),