summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-10-13 13:09:05 +0200
committerRobin Appelman <icewind@owncloud.com>2014-10-13 13:09:05 +0200
commit19de425a509be555ac90a20ba4051cdd70606495 (patch)
treeb92ec40fe5f7a439ce9da001547d5268371ef5e4 /lib/private
parent4b9465b937a7754d2b58a77cf8f12adeaccef993 (diff)
downloadnextcloud-server-19de425a509be555ac90a20ba4051cdd70606495.tar.gz
nextcloud-server-19de425a509be555ac90a20ba4051cdd70606495.zip
Use the cached fileinfo to get creatable permissions
Diffstat (limited to 'lib/private')
-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();
}