Hide update notification if notification center is enabled
* then the notification center already contains this info Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
e3dfe2cba7
commit
d498d0982e
|
@ -33,7 +33,8 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) {
|
||||||
|
|
||||||
$userObject = \OC::$server->getUserSession()->getUser();
|
$userObject = \OC::$server->getUserSession()->getUser();
|
||||||
if($userObject !== null) {
|
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() !== []) {
|
if($updateChecker->getUpdateState() !== []) {
|
||||||
\OCP\Util::addScript('updatenotification', 'notification');
|
\OCP\Util::addScript('updatenotification', 'notification');
|
||||||
OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript');
|
OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript');
|
||||||
|
|
Loading…
Reference in New Issue