dont register personal files_external setting if it's empty
This commit is contained in:
parent
263c73c685
commit
42f14ab5a9
|
@ -68,8 +68,15 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
|
|||
* Register settings templates
|
||||
*/
|
||||
public function registerSettings() {
|
||||
$container = $this->getContainer();
|
||||
$backendService = $container->query('OCA\\Files_External\\Service\\BackendService');
|
||||
|
||||
/** @var \OCA\Files_External\Service\UserGlobalStoragesService $userGlobalStoragesService */
|
||||
$userGlobalStoragesService = $container->query('OCA\Files_External\Service\UserGlobalStoragesService');
|
||||
if (count($userGlobalStoragesService->getStorages()) > 0 || $backendService->isUserMountingAllowed()) {
|
||||
\OCP\App::registerPersonal('files_external', 'personal');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @{inheritdoc}
|
||||
|
|
Loading…
Reference in New Issue