diff options
Diffstat (limited to 'apps')
-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'); |