diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-05 11:45:40 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-07-26 14:30:21 +0200 |
commit | 28290d869145f7830085b5d27a6247d8a86105e2 (patch) | |
tree | d9c63c09dbe3ebe58fe43d278fd071c823141b92 /apps | |
parent | 174cd4f478b0c555a23ddb5de3aedae3aac82220 (diff) | |
download | nextcloud-server-28290d869145f7830085b5d27a6247d8a86105e2.tar.gz nextcloud-server-28290d869145f7830085b5d27a6247d8a86105e2.zip |
Allow to enable the external storage app via the web ui
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_external/lib/Settings/PersonalSection.php | 16 |
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 +} |