Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-09-04 16:22:23 +0300
committerJulius Härtl <jus@bitgrid.net>2019-09-04 16:22:23 +0300
commit96a3bf997ad29893aab83cf308ce04957773dc18 (patch)
tree4fd8ffd7e1a6934a676e2ef8c35b87d6ea7ffd9e /lib
parent2743ed83cda78c36ddf8b7a04f0fc8beaaa20972 (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.php2
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 */