summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-12 19:39:56 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-12 19:39:56 +0100
commitb5bf32bc34a410d1f0756ffcda5eb7dfeca67134 (patch)
tree59a355d46db2627d5d99f7da25adf3659aaba9e9 /apps
parent0c8021e9451d80cddf4be9fd32bde6b48f9da03c (diff)
parentab5768f7dda3c8cc56f51c8333d3d9a54ab23a61 (diff)
downloadnextcloud-server-b5bf32bc34a410d1f0756ffcda5eb7dfeca67134.tar.gz
nextcloud-server-b5bf32bc34a410d1f0756ffcda5eb7dfeca67134.zip
Merge pull request #22354 from owncloud/only-register-when-available
Only register admin page when update is available
Diffstat (limited to 'apps')
-rw-r--r--apps/updatenotification/appinfo/app.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php
index 99df99ac7c9..9148b6e6ef7 100644
--- a/apps/updatenotification/appinfo/app.php
+++ b/apps/updatenotification/appinfo/app.php
@@ -34,8 +34,7 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) {
if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID()) && $updateChecker->getUpdateState() !== []) {
\OCP\Util::addScript('updatenotification', 'notification');
OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript');
+ \OC_App::registerAdmin('updatenotification', 'admin');
}
}
-
- \OC_App::registerAdmin('updatenotification', 'admin');
}