summaryrefslogtreecommitdiffstats
path: root/apps/updatenotification/lib/Controller/AdminController.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-05-09 09:43:06 +0200
committerJoas Schilling <nickvergessen@owncloud.com>2016-05-24 11:26:52 +0200
commitc34788918d83ff3f10c44d2c8cb7dfde09b326a5 (patch)
treed23c75730244913a7a372495c8dde1d6c2acc819 /apps/updatenotification/lib/Controller/AdminController.php
parentd2553a4f6e14181d7788e42d1c70285ebb40f736 (diff)
downloadnextcloud-server-c34788918d83ff3f10c44d2c8cb7dfde09b326a5.tar.gz
nextcloud-server-c34788918d83ff3f10c44d2c8cb7dfde09b326a5.zip
Make the group selectable
Diffstat (limited to 'apps/updatenotification/lib/Controller/AdminController.php')
-rw-r--r--apps/updatenotification/lib/Controller/AdminController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/updatenotification/lib/Controller/AdminController.php b/apps/updatenotification/lib/Controller/AdminController.php
index 5dbcc685809..c622b9690a7 100644
--- a/apps/updatenotification/lib/Controller/AdminController.php
+++ b/apps/updatenotification/lib/Controller/AdminController.php
@@ -100,12 +100,17 @@ class AdminController extends Controller {
unset($channels[$key]);
}
$updateState = $this->updateChecker->getUpdateState();
+
+ $notifyGroups = json_decode($this->config->getAppValue('updatenotification', 'notify_groups', '["admin"]'));
+
$params = [
'isNewVersionAvailable' => ($updateState === []) ? false : true,
'lastChecked' => $lastUpdateCheck,
'currentChannel' => $currentChannel,
'channels' => $channels,
'newVersionString' => ($updateState === []) ? '' : $updateState['updateVersion'],
+
+ 'notify_groups' => implode('|', $notifyGroups),
];
return new TemplateResponse($this->appName, 'admin', $params, '');