summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:17 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-13 18:24:17 +0100
commit0b4895bc7c497783cba0b69d280a6114cdf47d6f (patch)
tree599e37733bf9517e52039df402705229c70dc48d
parent248c571c56b09ccabcc5a881500fd831be424d3c (diff)
parent29ce56ed07cba66b6cfe7070c0a46f5a93ff873c (diff)
downloadnextcloud-server-0b4895bc7c497783cba0b69d280a6114cdf47d6f.tar.gz
nextcloud-server-0b4895bc7c497783cba0b69d280a6114cdf47d6f.zip
Merge pull request #22343 from owncloud/check-if-admin-user
Check if admin user
-rw-r--r--lib/private/templatelayout.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/templatelayout.php b/lib/private/templatelayout.php
index 7166b23d4c2..5afbd4495c4 100644
--- a/lib/private/templatelayout.php
+++ b/lib/private/templatelayout.php
@@ -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');
}