mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
fix error when not logged in
This commit is contained in:
parent
bead6c9307
commit
e286e0492a
1 changed files with 4 additions and 0 deletions
|
|
@ -69,6 +69,10 @@ class Application extends App implements IBackendProvider, IAuthMechanismProvide
|
|||
*/
|
||||
public function registerSettings() {
|
||||
$container = $this->getContainer();
|
||||
$userSession = $container->getServer()->getUserSession();
|
||||
if (!$userSession->isLoggedIn()) {
|
||||
return;
|
||||
}
|
||||
$backendService = $container->query('OCA\\Files_External\\Service\\BackendService');
|
||||
|
||||
/** @var \OCA\Files_External\Service\UserGlobalStoragesService $userGlobalStoragesService */
|
||||
|
|
|
|||
Loading…
Reference in a new issue