aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-31 10:36:16 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-31 10:36:16 +0200
commit59ed464ee63a0719eeed3bbc2864749a2ce04ff0 (patch)
tree9bde544109a58113091182b6948e51624660960b
parentfffcb798d97062b331da70aad6419f8c475ab5ef (diff)
parentc2cac0940d5df126390a7fd2a1cbd6d82022c7a1 (diff)
downloadnextcloud-server-59ed464ee63a0719eeed3bbc2864749a2ce04ff0.tar.gz
nextcloud-server-59ed464ee63a0719eeed3bbc2864749a2ce04ff0.zip
Merge pull request #24769 from owncloud/issue-24752-no-ui-message-when-integrity-disabled
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 cda16dd0178..9a0fbda741d 100644
--- a/lib/private/TemplateLayout.php
+++ b/lib/private/TemplateLayout.php
@@ -73,7 +73,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');
}