mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-21 20:20:34 +09:00
feat: support the listing of private apps
This commit is contained in:
@@ -128,6 +128,15 @@ class Application extends Model
|
|||||||
$list[$app->appid] = $app->name;
|
$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;
|
return $list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user