We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f627754 + 7b2a7f6 commit bea70d4Copy full SHA for bea70d4
apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -695,6 +695,10 @@ public function updateShare(
695
throw new OCSNotFoundException($this->l->t('Wrong share ID, share doesn\'t exist'));
696
}
697
698
+ if ($share->getShareOwner() !== $this->currentUser && $share->getSharedBy() !== $this->currentUser) {
699
+ throw new OCSForbiddenException('You are not allowed to edit incomming shares');
700
+ }
701
+
702
if ($permissions === null && $password === null && $publicUpload === null && $expireDate === null) {
703
throw new OCSBadRequestException($this->l->t('Wrong or no update parameter given'));
704
0 commit comments