Skip to content

Commit aad8b30

Browse files
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
2 parents e275dc0 + 7dccb8c commit aad8b30

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

apps/updatenotification/lib/Controller/APIController.php

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,18 @@ class APIController extends OCSController {
5757
/** @var string */
5858
protected $language;
5959

60+
/**
61+
* List of apps that were in the appstore but are now shipped and don't have
62+
* a compatible update available.
63+
*
64+
* @var array<string, int>
65+
*/
66+
protected array $appsShippedInFutureVersion = [
67+
'bruteforcesettings' => 25,
68+
'suspicious_login' => 25,
69+
'twofactor_totp' => 25,
70+
];
71+
6072
public function __construct(string $appName,
6173
IRequest $request,
6274
IConfig $config,
@@ -92,7 +104,7 @@ public function getAppList(string $newVersion): DataResponse {
92104
} catch (AppPathNotFoundException $e) {
93105
return false;
94106
}
95-
return !$this->appManager->isShipped($app);
107+
return !$this->appManager->isShipped($app) && !isset($this->appsShippedInFutureVersion[$app]);
96108
});
97109

98110
if (empty($installedApps)) {

0 commit comments

Comments
 (0)