From 7dccb8cd0cf881b1e56fe717f75139bffa14c7af Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 15 Nov 2022 17:40:26 +0100 Subject: [PATCH] Hide warning about missing apps for when shipped in the next version Signed-off-by: Joas Schilling --- .../lib/Controller/APIController.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/apps/updatenotification/lib/Controller/APIController.php b/apps/updatenotification/lib/Controller/APIController.php index 9d5d1c2d764..75b847aceb3 100644 --- a/apps/updatenotification/lib/Controller/APIController.php +++ b/apps/updatenotification/lib/Controller/APIController.php @@ -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 + */ + 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)) { -- 2.39.5