diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-23 11:29:40 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-05-23 11:29:40 +0200 |
commit | c2cac0940d5df126390a7fd2a1cbd6d82022c7a1 (patch) | |
tree | 54826ce28fb9f0f2835efef12043c2f5c5992841 | |
parent | dec3f9ebcbdeacf5bc483df93900b157a1a5e546 (diff) | |
download | nextcloud-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.php | 2 |
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'); } |