From 28290d869145f7830085b5d27a6247d8a86105e2 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 5 Jul 2017 11:45:40 +0200 Subject: [PATCH] Allow to enable the external storage app via the web ui Signed-off-by: Joas Schilling --- .../lib/Settings/PersonalSection.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/apps/files_external/lib/Settings/PersonalSection.php b/apps/files_external/lib/Settings/PersonalSection.php index 32a841c420..669cd941da 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 +}