]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the cached fileinfo to get creatable permissions
authorRobin Appelman <icewind@owncloud.com>
Mon, 13 Oct 2014 11:09:05 +0000 (13:09 +0200)
committerRobin Appelman <icewind@owncloud.com>
Mon, 13 Oct 2014 11:09:05 +0000 (13:09 +0200)
lib/private/connector/sabre/directory.php

index 597fbdae0cc62237e190f01fdc2ff6e3113b47ef..1b6d1f363b82115c49aa9265886ce2dc674dfb84 100644 (file)
@@ -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();
                }