Skip to content

Commit

Permalink
fix(users/groups): fix 500 if unauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Nov 5, 2024
1 parent 3c53564 commit 9100a83
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Web/Models/Entities/Traits/TIgnorable.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

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

0 comments on commit 9100a83

Please sign in to comment.