Merge pull request #22354 from owncloud/only-register-when-available
Only register admin page when update is available
This commit is contained in:
commit
b5bf32bc34
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue