Merge pull request #5614 from nextcloud/fix-enabling-external-storage-via-web

Allow to enable the external storage app via the web ui
This commit is contained in:
Morris Jobke 2017-07-26 22:30:29 +02:00 committed by GitHub
commit 50b355fa84
1 changed files with 1 additions and 15 deletions

View File

@ -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;
}
}
}
}