diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-10-15 14:39:07 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-15 14:39:07 +0200 |
commit | 6824a5ce7f5752c2a3ebbe9e2f3a85eb3aafa05b (patch) | |
tree | 9065e7706c7f990c40c3411895edca49357b374b | |
parent | 6fa03870e9d0de5c0ff9fff120c4b06e6f94c4a0 (diff) | |
parent | 19de425a509be555ac90a20ba4051cdd70606495 (diff) | |
download | nextcloud-server-6824a5ce7f5752c2a3ebbe9e2f3a85eb3aafa05b.tar.gz nextcloud-server-6824a5ce7f5752c2a3ebbe9e2f3a85eb3aafa05b.zip |
Merge pull request #11538 from owncloud/webdav-creatable-info
Use the cached fileinfo to get creatable permissions
-rw-r--r-- | lib/private/connector/sabre/directory.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/connector/sabre/directory.php b/lib/private/connector/sabre/directory.php index 597fbdae0cc..1b6d1f363b8 100644 --- a/lib/private/connector/sabre/directory.php +++ b/lib/private/connector/sabre/directory.php @@ -84,7 +84,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node * @return void */ public function createDirectory($name) { - if (!$this->fileView->isCreatable($this->path)) { + if (!$this->info->isCreatable()) { throw new \Sabre\DAV\Exception\Forbidden(); } |