summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-09-26 09:21:32 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-09-26 09:21:32 +0200
commite5a111b80e20b188efe782c8245d2379596f893c (patch)
tree45d30728be3213aa19a7bdff65860ba31b87b4e3 /lib/private/files
parent16319379905b2a8d52d182f7361864135408d622 (diff)
parent10c350b8955a318d9b2e50714f22bdfab06abf87 (diff)
downloadnextcloud-server-e5a111b80e20b188efe782c8245d2379596f893c.tar.gz
nextcloud-server-e5a111b80e20b188efe782c8245d2379596f893c.zip
Merge pull request #11285 from owncloud/dav-permissions-create
Fix dav permissions for folders
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/fileinfo.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/private/files/fileinfo.php b/lib/private/files/fileinfo.php
index 716b7d39402..8457a2d160f 100644
--- a/lib/private/files/fileinfo.php
+++ b/lib/private/files/fileinfo.php
@@ -184,6 +184,15 @@ class FileInfo implements \OCP\Files\FileInfo, \ArrayAccess {
}
/**
+ * Check whether new files or folders can be created inside this folder
+ *
+ * @return bool
+ */
+ public function isCreatable() {
+ return $this->checkPermissions(\OCP\PERMISSION_CREATE);
+ }
+
+ /**
* @return bool
*/
public function isDeletable() {