Merge pull request #22343 from owncloud/check-if-admin-user

Check if admin user
This commit is contained in:
Thomas Müller 2016-02-13 18:24:17 +01:00
commit 0b4895bc7c

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