summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/appinfo/app.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-03-04 13:56:13 +0100
committerLukas Reschke <lukas@owncloud.com>2016-03-04 14:37:35 +0100
commite3a0a69c7375154b7205511e919363b709ca3831 (patch)
tree916ff010b45d25a122ef4878bc5b245178349dad /apps/updatenotification/appinfo/app.php
parent8be6054e5ce8aeffd6e305317e57e2747f7909ea (diff)
downloadnextcloud-server-e3a0a69c7375154b7205511e919363b709ca3831.tar.gz
nextcloud-server-e3a0a69c7375154b7205511e919363b709ca3831.zip
Add release channel selection back
Allows to select the release channels again and also shows the last check date
Diffstat (limited to 'apps/updatenotification/appinfo/app.php')
-rw-r--r--apps/updatenotification/appinfo/app.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php
index 9148b6e6ef7..f257cba6974 100644
--- a/apps/updatenotification/appinfo/app.php
+++ b/apps/updatenotification/appinfo/app.php
@@ -31,9 +31,11 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) {
$userObject = \OC::$server->getUserSession()->getUser();
if($userObject !== null) {
- if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID()) && $updateChecker->getUpdateState() !== []) {
- \OCP\Util::addScript('updatenotification', 'notification');
- OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript');
+ if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID())) {
+ if($updateChecker->getUpdateState() !== []) {
+ \OCP\Util::addScript('updatenotification', 'notification');
+ OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript');
+ }
\OC_App::registerAdmin('updatenotification', 'admin');
}
}