summaryrefslogtreecommitdiffstats
path: root/core/Controller/OCSController.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Controller/OCSController.php')
-rw-r--r--core/Controller/OCSController.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/core/Controller/OCSController.php b/core/Controller/OCSController.php
index a709ab7b07b..35eac3a3d8b 100644
--- a/core/Controller/OCSController.php
+++ b/core/Controller/OCSController.php
@@ -80,7 +80,8 @@ class OCSController extends \OCP\AppFramework\OCSController {
}
/**
- * @NoAdminRequired
+ * @PublicPage
+ *
* @return DataResponse
*/
public function getCapabilities() {
@@ -94,7 +95,11 @@ class OCSController extends \OCP\AppFramework\OCSController {
'edition' => '',
);
- $result['capabilities'] = $this->capabilitiesManager->getCapabilities();
+ if($this->userSession->isLoggedIn()) {
+ $result['capabilities'] = $this->capabilitiesManager->getCapabilities();
+ } else {
+ $result['capabilities'] = $this->capabilitiesManager->getCapabilities(true);
+ }
return new DataResponse($result);
}