summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-10-24 13:45:40 +0200
committerGitHub <noreply@github.com>2018-10-24 13:45:40 +0200
commitb3a0d871174268f23e6edaf41a4fd615459d8f22 (patch)
treeaa13a4eae215aec88ddb3aa272e739c7d8a3b5b5 /apps/files/lib
parentded746f821360da5e99a88557f330cf4b28a48e3 (diff)
parent8dc449990dcd5a62e4280c1af9769582cf0a719a (diff)
downloadnextcloud-server-b3a0d871174268f23e6edaf41a4fd615459d8f22.tar.gz
nextcloud-server-b3a0d871174268f23e6edaf41a4fd615459d8f22.zip
Merge pull request #10888 from nextcloud/bug/noid/fix-missing-quickaccess-favorite-folder-on-add
Bug/noid/fix missing quickaccess favorite folder on add
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/Controller/ApiController.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php
index 9443b9776ae..27cd0b361c5 100644
--- a/apps/files/lib/Controller/ApiController.php
+++ b/apps/files/lib/Controller/ApiController.php
@@ -292,5 +292,17 @@ class ApiController extends Controller {
return $response;
}
+ /**
+ * Get sorting-order for custom sorting
+ *
+ * @NoAdminRequired
+ *
+ * @param String
+ * @return String
+ */
+ public function getNodeType($folderpath) {
+ $node = $this->userFolder->get($folderpath);
+ return $node->getType();
+ }
}