summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2018-12-08 00:36:35 +0100
committerJulius Härtl <jus@bitgrid.net>2018-12-08 00:36:35 +0100
commit8ff50dbbd7c71c8937b5c37b428161b93da81b79 (patch)
treec0b12bb8aee632fb45418de2e3d6c495abae849c /lib
parentb534b11664118b49e3ad4ff73ca1994221689bfe (diff)
Run well-known check after setup
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/NavigationController.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Controller/NavigationController.php b/lib/Controller/NavigationController.php
index 33880792..cbe5a1f1 100644
--- a/lib/Controller/NavigationController.php
+++ b/lib/Controller/NavigationController.php
@@ -148,9 +148,6 @@ class NavigationController extends Controller {
]
];
- $checks = $this->checkService->checkDefault();
- $data['serverData']['checks'] = $checks;
-
try {
$data['serverData']['cloudAddress'] = $this->configService->getCloudAddress();
} catch (SocialAppConfigException $e) {
@@ -171,6 +168,11 @@ class NavigationController extends Controller {
}
}
+ if ($data['serverData']['isAdmin']) {
+ $checks = $this->checkService->checkDefault();
+ $data['serverData']['checks'] = $checks;
+ }
+
/*
* Create social user account if it doesn't exist yet
*/