Skip to content

Commit b658ab7

Browse files
committed
fix(files_sharing): Remove duplicate link/email edit share logic
Signed-off-by: provokateurin <[email protected]>
1 parent c378e74 commit b658ab7

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

apps/files_sharing/lib/Controller/ShareAPIController.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,18 +1235,6 @@ public function updateShare(
12351235
if ($share->getShareType() === IShare::TYPE_LINK
12361236
|| $share->getShareType() === IShare::TYPE_EMAIL) {
12371237

1238-
/**
1239-
* We do not allow editing link shares that the current user
1240-
* doesn't own. This is confusing and lead to errors when
1241-
* someone else edit a password or expiration date without
1242-
* the share owner knowing about it.
1243-
* We only allow deletion
1244-
*/
1245-
1246-
if ($share->getSharedBy() !== $this->userId) {
1247-
throw new OCSForbiddenException($this->l->t('You are not allowed to edit link shares that you don\'t own'));
1248-
}
1249-
12501238
// Update hide download state
12511239
$attributes = $share->getAttributes() ?? $share->newAttributes();
12521240
if ($hideDownload === 'true') {

0 commit comments

Comments
 (0)