Skip to content

Commit 9a06ac7

Browse files
CarlSchwanbackportbot[bot]
authored andcommitted
fix: Check if it is deletable and updatable
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
1 parent a219b60 commit 9a06ac7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/Storage/Wrapper/DirPermissionsMask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function getPermissions($path): int {
8888
}
8989

9090
public function rename($source, $target): bool {
91-
if (!$this->isDeletable($source)) {
91+
if (!($this->isDeletable($source) || $this->isUpdatable($source))) {
9292
return false;
9393
}
9494

0 commit comments

Comments
 (0)