diff --git a/apps/updatenotification/appinfo/app.php b/apps/updatenotification/appinfo/app.php index 99df99ac7c..9148b6e6ef 100644 --- a/apps/updatenotification/appinfo/app.php +++ b/apps/updatenotification/appinfo/app.php @@ -34,8 +34,7 @@ if(\OC::$server->getConfig()->getSystemValue('updatechecker', true) === true) { if(\OC::$server->getGroupManager()->isAdmin($userObject->getUID()) && $updateChecker->getUpdateState() !== []) { \OCP\Util::addScript('updatenotification', 'notification'); OC_Hook::connect('\OCP\Config', 'js', $updateChecker, 'getJavaScript'); + \OC_App::registerAdmin('updatenotification', 'admin'); } } - - \OC_App::registerAdmin('updatenotification', 'admin'); }