Check if the parent is writable to check if a file is deletable

remotes/origin/fix-10825
Robin Appelman 12 years ago committed by Lukas Reschke
parent 0d37e16499
commit ab79caf29b
  1. 6
      lib/private/files/storage/common.php

@ -95,7 +95,11 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
public function isDeletable($path) {
return $this->isUpdatable($path);
if ($path === '' or $path === '/') {
return false;
}
$parent = dirname($path);
return $this->isUpdatable($parent);
}
public function isSharable($path) {

Loading…
Cancel
Save