feat: support the listing of private apps

This commit is contained in:
Attila Kerekes
2022-10-27 21:57:23 +00:00
parent e2ba89c80e
commit 533af2dc49

View File

@@ -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;
}
}