Check if admin user

We should not add the JS for not admin users.
This commit is contained in:
Lukas Reschke 2016-02-12 10:36:43 +01:00 committed by Morris Jobke
parent f8607ac132
commit 29ce56ed07
1 changed files with 1 additions and 1 deletions

View File

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