Only folders have Create permission

This commit is contained in:
Michael Gapczynski 2012-12-26 15:36:50 -05:00
parent 7e36f730ec
commit b4515d874e

View file

@ -38,7 +38,10 @@ abstract class Common implements \OC\Files\Storage\Storage {
}
}
public function isCreatable($path) {
return $this->isUpdatable($path);
if ($this->is_dir($path) && $this->isUpdatable($path)) {
return true;
}
return false;
}
public function isDeletable($path) {
return $this->isUpdatable($path);