Skip to content

Commit

Permalink
Merge branch 'main' into fix/npm-vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Oct 9, 2024
2 parents 1dab1b7 + 6610776 commit 2a2d1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/Magazine.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ public function isActorPostingRestricted(Magazine|User $actor): bool
return false;
}

if (null === $this->apId && ($actor->isAdmin() || $actor->isModerator() || $this->userIsModerator($actor))) {
if ((null === $this->apId && ($actor->isAdmin() || $actor->isModerator())) || $this->userIsModerator($actor)) {
return false;
}
}
Expand Down

0 comments on commit 2a2d1ac

Please sign in to comment.