diff options
author | Lukas Reschke <lukas@owncloud.com> | 2016-02-12 10:36:43 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-02-12 14:37:50 +0100 |
commit | 29ce56ed07cba66b6cfe7070c0a46f5a93ff873c (patch) | |
tree | f1693425e714d4a32e0590276c88a82cb7694d5b /lib | |
parent | f8607ac1327f3254f6f4fe86c8418f1b3d447730 (diff) | |
download | nextcloud-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.php | 2 |
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'); } |