Merge pull request #22343 from owncloud/check-if-admin-user
Check if admin user
This commit is contained in:
commit
0b4895bc7c
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(!$integrityChecker->hasPassedCheck()) {
|
||||
if(\OC_User::isAdminUser(\OC_User::getUser()) && !$integrityChecker->hasPassedCheck()) {
|
||||
\OCP\Util::addScript('core', 'integritycheck-failed-notification');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue