From 19de425a509be555ac90a20ba4051cdd70606495 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 13 Oct 2014 13:09:05 +0200 Subject: [PATCH] Use the cached fileinfo to get creatable permissions --- lib/private/connector/sabre/directory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/connector/sabre/directory.php b/lib/private/connector/sabre/directory.php index 597fbdae0c..1b6d1f363b 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(); }