summaryrefslogtreecommitdiffstats
path: root/settings
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-06-29 11:38:28 +0200
committerLukas Reschke <lukas@owncloud.com>2015-06-29 11:38:28 +0200
commit30145c0b52cdc084276e7c682be1ccc4443a6343 (patch)
tree2d1ebf03a987abf2839f257fd53b07314112f39f /settings
parent00a65e30ce703e93e8e4c7a3658fe28271d2d623 (diff)
downloadnextcloud-server-30145c0b52cdc084276e7c682be1ccc4443a6343.tar.gz
nextcloud-server-30145c0b52cdc084276e7c682be1ccc4443a6343.zip
Also load enabled apps
Diffstat (limited to 'settings')
-rw-r--r--settings/controller/appsettingscontroller.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/settings/controller/appsettingscontroller.php b/settings/controller/appsettingscontroller.php
index ef483cc3a03..4afc442117a 100644
--- a/settings/controller/appsettingscontroller.php
+++ b/settings/controller/appsettingscontroller.php
@@ -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: