diff --git a/lib/Db/Collective.php b/lib/Db/Collective.php index fb50a1812..25f412b12 100644 --- a/lib/Db/Collective.php +++ b/lib/Db/Collective.php @@ -211,9 +211,11 @@ public function setUserShowRecentPages(bool $userShowRecentPages): void { } public function getUserPermissions(bool $isShare = false): int { - // Public shares always get permissions of a simple member + + // Public shares always get permissions of a simple member plus sharing permission of owner if ($isShare) { - return $this->getMemberPermissions(); + $sharePermissions = $this->canShare() ? Constants::PERMISSION_SHARE : 0; + return $this->getMemberPermissions() | $sharePermissions; } if ($this->level === Member::LEVEL_OWNER || $this->level === Member::LEVEL_ADMIN) {