summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2021-09-08 23:43:17 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2021-10-12 11:47:33 +0000
commit1237d64bdba24efdc219a4198c5bf82289d4d668 (patch)
treea98fb65b33ba9d4b8f75e4b4ba40eb02e43e20d6 /apps
parentbb56e9df556873277fd271cd0ac876a2790054f7 (diff)
downloadnextcloud-server-1237d64bdba24efdc219a4198c5bf82289d4d668.tar.gz
nextcloud-server-1237d64bdba24efdc219a4198c5bf82289d4d668.zip
add 'supported'-label to all supported apps, also if they are not downloaded yet
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Controller/AppSettingsController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/settings/lib/Controller/AppSettingsController.php b/apps/settings/lib/Controller/AppSettingsController.php
index 4d22e90f645..059d2d99079 100644
--- a/apps/settings/lib/Controller/AppSettingsController.php
+++ b/apps/settings/lib/Controller/AppSettingsController.php
@@ -205,6 +205,7 @@ class AppSettingsController extends Controller {
}
$apps = $this->getAppsForCategory('');
+ $supportedApps = $appClass->getSupportedApps();
foreach ($apps as $app) {
$app['appstore'] = true;
if (!array_key_exists($app['id'], $this->allApps)) {
@@ -212,6 +213,10 @@ class AppSettingsController extends Controller {
} else {
$this->allApps[$app['id']] = array_merge($app, $this->allApps[$app['id']]);
}
+
+ if (in_array($app['id'], $supportedApps)) {
+ $this->allApps[$app['id']]['level'] = \OC_App::supportedApp;
+ }
}
// add bundle information