Merge pull request #35185 from nextcloud/bugfix/noid/hide-not-missing-updates-of-future-shipped-apps

Hide warning about missing apps for when shipped in the next version
pull/35294/head
Joas Schilling 2022-11-21 07:36:42 +07:00 committed by GitHub
commit aad8b30398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

@ -57,6 +57,18 @@ class APIController extends OCSController {
/** @var string */
protected $language;
/**
* List of apps that were in the appstore but are now shipped and don't have
* a compatible update available.
*
* @var array<string, int>
*/
protected array $appsShippedInFutureVersion = [
'bruteforcesettings' => 25,
'suspicious_login' => 25,
'twofactor_totp' => 25,
];
public function __construct(string $appName,
IRequest $request,
IConfig $config,
@ -92,7 +104,7 @@ class APIController extends OCSController {
} catch (AppPathNotFoundException $e) {
return false;
}
return !$this->appManager->isShipped($app);
return !$this->appManager->isShipped($app) && !isset($this->appsShippedInFutureVersion[$app]);
});
if (empty($installedApps)) {