summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-02-12 10:36:43 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-02-12 14:37:50 +0100
commit29ce56ed07cba66b6cfe7070c0a46f5a93ff873c (patch)
treef1693425e714d4a32e0590276c88a82cb7694d5b /lib
parentf8607ac1327f3254f6f4fe86c8418f1b3d447730 (diff)
downloadnextcloud-server-29ce56ed07cba66b6cfe7070c0a46f5a93ff873c.tar.gz
nextcloud-server-29ce56ed07cba66b6cfe7070c0a46f5a93ff873c.zip
Check if admin user
We should not add the JS for not admin users.
Diffstat (limited to 'lib')
-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');
}