Only show message in the UI when the checker is enabled

This commit is contained in:
Joas Schilling 2016-05-23 11:29:40 +02:00
parent dec3f9ebcb
commit c2cac0940d
No known key found for this signature in database
GPG key ID: 70A0B324C41C0946

View file

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