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 ;
111111 $ mask |= Constants::PERMISSION_READ | Constants::PERMISSION_DELETE ;
112112 }
113113
114- return new PermissionsMask (['storage ' => $ storage , 'mask ' => $ mask ]);
114+ return new DirPermissionsMask ([
115+ 'storage ' => $ storage ,
116+ 'mask ' => $ mask ,
117+ 'path ' => 'files ' ,
118+ ]);
115119 });
116120
117121 /** @psalm-suppress MissingClosureParamType */
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function getPermissions($path): int {
8888 }
8989
9090 public function rename ($ source , $ target ): bool {
91- if (!$ this ->isUpdatable ($ source )) {
91+ if (!$ this ->isDeletable ($ source )) {
9292 return false ;
9393 }
9494
You can’t perform that action at this time.
0 commit comments