summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-26 22:30:29 +0200
committerGitHub <noreply@github.com>2017-07-26 22:30:29 +0200
commit50b355fa84b3e8fd8e5826b2bf45dd0d3182d64f (patch)
tree8e8a24998cc596d0a6b205079a1b9c331882ace3
parenteb8cd4b80e80174047941073d8ebf07040d957be (diff)
parent28290d869145f7830085b5d27a6247d8a86105e2 (diff)
downloadnextcloud-server-50b355fa84b3e8fd8e5826b2bf45dd0d3182d64f.tar.gz
nextcloud-server-50b355fa84b3e8fd8e5826b2bf45dd0d3182d64f.zip
Merge pull request #5614 from nextcloud/fix-enabling-external-storage-via-web
Allow to enable the external storage app via the web ui
-rw-r--r--apps/files_external/lib/Settings/PersonalSection.php16
1 files changed, 1 insertions, 15 deletions
diff --git a/apps/files_external/lib/Settings/PersonalSection.php b/apps/files_external/lib/Settings/PersonalSection.php
index 32a841c420a..669cd941da9 100644
--- a/apps/files_external/lib/Settings/PersonalSection.php
+++ b/apps/files_external/lib/Settings/PersonalSection.php
@@ -50,18 +50,4 @@ class PersonalSection extends Section {
$this->userGlobalStoragesService = $userGlobalStoragesService;
$this->backendService = $backendService;
}
-
- public function getID() {
- if (!$this->userSession->isLoggedIn()) {
- // we need to return the proper id while installing/upgrading the app
- return parent::getID();
- }
-
- if (count($this->userGlobalStoragesService->getStorages()) > 0 || $this->backendService->isUserMountingAllowed()) {
- return parent::getID();
- } else {
- // by returning a different id, no matching settings will be found and the item will be hidden
- return null;
- }
- }
-} \ No newline at end of file
+}