mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
fix(users/groups): fix 500 if unauthorized
This commit is contained in:
parent
3c53564d57
commit
9100a83044
1 changed files with 4 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue