diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-05-31 10:36:16 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2016-05-31 10:36:16 +0200 |
commit | 59ed464ee63a0719eeed3bbc2864749a2ce04ff0 (patch) | |
tree | 9bde544109a58113091182b6948e51624660960b /lib | |
parent | fffcb798d97062b331da70aad6419f8c475ab5ef (diff) | |
parent | c2cac0940d5df126390a7fd2a1cbd6d82022c7a1 (diff) | |
download | nextcloud-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
Diffstat (limited to 'lib')
-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 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'); } |