diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/app.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php index 9f51c022d6c..d495bef2ebd 100644 --- a/lib/private/legacy/app.php +++ b/lib/private/legacy/app.php @@ -71,6 +71,7 @@ class OC_App { static private $altLogin = []; static private $alreadyRegistered = []; static public $autoDisabledApps = []; + const supportedApp = 300; const officialApp = 200; /** @@ -704,6 +705,9 @@ class OC_App { $appList = []; $langCode = \OC::$server->getL10N('core')->getLanguageCode(); $urlGenerator = \OC::$server->getURLGenerator(); + /** @var \OCP\Support\Subscription\IRegistry $subscriptionRegistry */ + $subscriptionRegistry = \OC::$server->query(\OCP\Support\Subscription\IRegistry::class); + $supportedApps = $subscriptionRegistry->delegateGetSupportedApps(); foreach ($installedApps as $app) { if (array_search($app, $blacklist) === false) { @@ -741,6 +745,10 @@ class OC_App { $info['removable'] = true; } + if (in_array($app, $supportedApps)) { + $info['level'] = self::supportedApp; + } + $appPath = self::getAppPath($app); if($appPath !== false) { $appIcon = $appPath . '/img/' . $app . '.svg'; |