Also load enabled apps

This commit is contained in:
Lukas Reschke 2015-06-29 11:38:28 +02:00
parent 00a65e30ce
commit 30145c0b52

View file

@ -169,6 +169,15 @@ class AppSettingsController extends Controller {
}
return ($a < $b) ? -1 : 1;
});
foreach($apps as $key => $app) {
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
$remoteAppEntry = $this->ocsClient->getApplication($app['ocsid']);
if(array_key_exists('level', $remoteAppEntry)) {
$apps[$key]['level'] = $remoteAppEntry['level'];
}
}
}
break;
// not-installed apps
case 1: