File tree Expand file tree Collapse file tree
lib/private/Files/Storage/Wrapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 * SPDX-License-Identifier: AGPL-3.0-only
77 */
88use OC \Files \Filesystem ;
9- use OC \Files \Storage \Wrapper \PermissionsMask ;
9+ use OC \Files \Storage \Wrapper \DirPermissionsMask ;
1010use OC \Files \View ;
1111use OCA \DAV \Connector \Sabre \PublicAuth ;
1212use OCA \DAV \Connector \Sabre \ServerFactory ;
116116 $ mask |= Constants::PERMISSION_READ | Constants::PERMISSION_DELETE ;
117117 }
118118
119- return new PermissionsMask (['storage ' => $ storage , 'mask ' => $ mask ]);
119+ return new DirPermissionsMask ([
120+ 'storage ' => $ storage ,
121+ 'mask ' => $ mask ,
122+ 'path ' => 'files ' ,
123+ ]);
120124 });
121125
122126 /** @psalm-suppress MissingClosureParamType */
Original file line number Diff line number Diff line change @@ -94,7 +94,7 @@ public function getPermissions($path): int {
9494
9595 #[\Override]
9696 public function rename ($ source , $ target ): bool {
97- if (!$ this ->isUpdatable ($ source )) {
97+ if (!$ this ->isDeletable ($ source )) {
9898 return false ;
9999 }
100100
You can’t perform that action at this time.
0 commit comments