diff options
author | Julius Härtl <jus@bitgrid.net> | 2019-09-04 16:22:23 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2019-09-04 16:22:23 +0300 |
commit | 96a3bf997ad29893aab83cf308ce04957773dc18 (patch) | |
tree | 4fd8ffd7e1a6934a676e2ef8c35b87d6ea7ffd9e /lib | |
parent | 2743ed83cda78c36ddf8b7a04f0fc8beaaa20972 (diff) |
Check if federation app is enabled
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/AppInfo/Application.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index d69bc858..c6b2e915 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -106,7 +106,7 @@ class Application extends App { try { $path = $container->getServer()->getRequest()->getPathInfo(); } catch (\Exception $e) {} - if (strpos($path, '/apps/files') === 0) { + if (strpos($path, '/apps/files') === 0 && $container->getServer()->getAppManager()->isEnabledForUser('federation')) { /** @var TrustedServers $trustedServers */ $trustedServers = $container->query(TrustedServers::class); /** @var FederationService $federationService */ |