From ab5768f7dda3c8cc56f51c8333d3d9a54ab23a61 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 12 Feb 2016 18:45:42 +0100 Subject: [PATCH] Only register admin page when update is available Fixes https://github.com/owncloud/core/issues/22353 --- apps/updatenotification/appinfo/app.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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'); }