Skip to content

Commit

Permalink
Fix logic error in the posting restriction logic (#1177)
Browse files Browse the repository at this point in the history
  • Loading branch information
BentiGorlich authored Oct 9, 2024
1 parent c4d351f commit 6610776
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 6610776

Please sign in to comment.