From d498d0982ecbb167bc88745f58dd20e2b0df9da4 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 21 Dec 2016 15:44:06 +0100 Subject: [PATCH] Hide update notification if notification center is enabled * then the notification center already contains this info Signed-off-by: Morris Jobke --- apps/updatenotification/appinfo/app.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php index e3010d418b..3e966fd127 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');