File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
apps/files_sharing/lib/Controller Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff 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 ' ) {
You can’t perform that action at this time.
0 commit comments