diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-12-21 15:44:06 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-12-21 15:44:06 +0100 |
commit | d498d0982ecbb167bc88745f58dd20e2b0df9da4 (patch) | |
tree | 4d43311798821c373a15567a3dd8557efd4dd3db /apps/updatenotification | |
parent | e3dfe2cba7ad53c69b443a18926d47e006df09d7 (diff) | |
download | nextcloud-server-d498d0982ecbb167bc88745f58dd20e2b0df9da4.tar.gz nextcloud-server-d498d0982ecbb167bc88745f58dd20e2b0df9da4.zip |
Hide update notification if notification center is enabled
* then the notification center already contains this info
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/updatenotification')
-rw-r--r-- | apps/updatenotification/appinfo/app.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php index e3010d418bb..3e966fd1276 100644 --- a/apps/updatenotification/appinfo/app.php +++ b/apps/updatenotification/appinfo/app.php @@ -33,7 +33,8 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) { $userObject = \OC::$server->getUserSession()->getUser(); if($userObject !== null) { - if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID())) { + if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID()) && + !\OC::$server->getAppManager()->isEnabledForUser('notifications')) { if($updateChecker->getUpdateState() !== []) { \OCP\Util::addScript('updatenotification', 'notification'); OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript'); |