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
This commit is contained in:
Vincent Petry 2016-05-31 10:36:16 +02:00
commit 59ed464ee6

View file

@ -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');
}