aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-10-15 14:39:07 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-15 14:39:07 +0200
commit6824a5ce7f5752c2a3ebbe9e2f3a85eb3aafa05b (patch)
tree9065e7706c7f990c40c3411895edca49357b374b
parent6fa03870e9d0de5c0ff9fff120c4b06e6f94c4a0 (diff)
parent19de425a509be555ac90a20ba4051cdd70606495 (diff)
downloadnextcloud-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.php2
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();
}