File tree Expand file tree Collapse file tree
apps/updatenotification/lib/Controller Expand file tree Collapse file tree Original file line number Diff line number Diff 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 )) {
You can’t perform that action at this time.
0 commit comments