feat: support the listing of private apps

This commit is contained in:
Attila Kerekes
2022-10-28 09:55:16 +00:00
parent 533af2dc49
commit 6907695c5d
2 changed files with 15 additions and 1 deletions

View File

@@ -110,6 +110,13 @@ class Application extends Model
{
$apps = self::apps();
$app = $apps->where('appid', $appid)->first();
if ($app === null) {
// Try in db for Private App
$appModel = self::where('appid', $appid)->first();
$app = json_decode($appModel->toJson());
}
if ($app === null) {
return null;
}