Skip to content

Commit

Permalink
Merge pull request #3279 from nextcloud/backport/3278/stable27
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Nov 9, 2023
2 parents fe33917 + 66752f9 commit 4e0c6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PermissionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function shouldWatermark(Node $node, ?string $userId = null, ?IShare $sha
}

if ($this->config->getAppValue(AppConfig::WATERMARK_APP_NAMESPACE, 'watermark_shareAll', 'no') === 'yes') {
if ($node->getOwner()->getUID() !== $userId) {
if ($userId === null || $node->getOwner()?->getUID() !== $userId) {
return true;
}
}
Expand Down

0 comments on commit 4e0c6b1

Please sign in to comment.