Skip to content

Commit 3692d0d

Browse files
committed
canChangeAuthor shouldn't rely on viewing peer entries
1 parent 4781390 commit 3692d0d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/elements/Entry.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2797,10 +2797,6 @@ private function canChangeAuthor(?User $user = null): bool
27972797

27982798
$section = $this->getSection();
27992799

2800-
if (!$user->can("viewPeerEntries:$section->uid")) {
2801-
return false;
2802-
}
2803-
28042800
$authorIds = $this->getAuthorIds();
28052801

28062802
return (

0 commit comments

Comments
 (0)