mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Only show message in the UI when the checker is enabled (#24773)
This commit is contained in:
parent
0ec4098955
commit
abd8475336
1 changed files with 1 additions and 1 deletions
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue