mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Only folders have Create permission
This commit is contained in:
parent
7e36f730ec
commit
b4515d874e
1 changed files with 4 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue