summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-23 11:29:40 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-23 11:29:40 +0200
commitc2cac0940d5df126390a7fd2a1cbd6d82022c7a1 (patch)
tree54826ce28fb9f0f2835efef12043c2f5c5992841
parentdec3f9ebcbdeacf5bc483df93900b157a1a5e546 (diff)
downloadnextcloud-server-c2cac0940d5df126390a7fd2a1cbd6d82022c7a1.tar.gz
nextcloud-server-c2cac0940d5df126390a7fd2a1cbd6d82022c7a1.zip
Only show message in the UI when the checker is enabled
-rw-r--r--lib/private/TemplateLayout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php
index 88077b418a7..fe17c37caa8 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -72,7 +72,7 @@ class TemplateLayout extends \OC_Template {
// Code integrity notification
$integrityChecker = \OC::$server->getIntegrityCodeChecker();
- if(\OC_User::isAdminUser(\OC_User::getUser()) && !$integrityChecker->hasPassedCheck()) {
+ if(\OC_User::isAdminUser(\OC_User::getUser()) && $integrityChecker->isCodeCheckEnforced() && !$integrityChecker->hasPassedCheck()) {
\OCP\Util::addScript('core', 'integritycheck-failed-notification');
}