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:
commit
50b355fa84
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue