From 533af2dc49c8387fb3a01abd97f7ca6397d104ce Mon Sep 17 00:00:00 2001 From: Attila Kerekes Date: Thu, 27 Oct 2022 21:57:23 +0000 Subject: [PATCH] feat: support the listing of private apps --- app/Application.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Application.php b/app/Application.php index 65288106..f3465957 100644 --- a/app/Application.php +++ b/app/Application.php @@ -128,6 +128,15 @@ class Application extends Model $list[$app->appid] = $app->name; } + // Check for private apps in the db + $appsListFromDB = self::all(['appid', 'name']); + + foreach($appsListFromDB as $app) { + // Already existing keys are overwritten, + // only private apps should be added at the end + $list[$app->appid] = $app->name; + } + return $list; } }