Check if admin user
We should not add the JS for not admin users.
This commit is contained in:
parent
f8607ac132
commit
29ce56ed07
|
@ -72,7 +72,7 @@ class TemplateLayout extends \OC_Template {
|
|||
|
||||
// Code integrity notification
|
||||
$integrityChecker = \OC::$server->getIntegrityCodeChecker();
|
||||
if(!$integrityChecker->hasPassedCheck()) {
|
||||
if(\OC_User::isAdminUser(\OC_User::getUser()) && !$integrityChecker->hasPassedCheck()) {
|
||||
\OCP\Util::addScript('core', 'integritycheck-failed-notification');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue