From: Robin Appelman Date: Mon, 13 Oct 2014 11:09:05 +0000 (+0200) Subject: Use the cached fileinfo to get creatable permissions X-Git-Tag: v8.0.0alpha1~513^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=19de425a509be555ac90a20ba4051cdd70606495;p=nextcloud-server.git Use the cached fileinfo to get creatable permissions --- 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(); }