diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-06-19 19:01:58 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-06-19 19:04:54 +0200 |
commit | 00a65e30ce703e93e8e4c7a3658fe28271d2d623 (patch) | |
tree | 4ab0f5a3b2948133bf2ea2d91f17ddc2e14e5d53 /lib/private/ocsclient.php | |
parent | 5ed9743570173fbea59f150c2fe8da8d6c681cba (diff) | |
download | nextcloud-server-00a65e30ce703e93e8e4c7a3658fe28271d2d623.tar.gz nextcloud-server-00a65e30ce703e93e8e4c7a3658fe28271d2d623.zip |
Request approved state for disabled apps with ocsid
In case an application gets disabled the level is set to "experimental" if it does not contain a `shipped` tag. This can for example be reproduced by installing the documents app from the appstore and then disabling it. Or cloning an app from git.
With this change the controller will now load the level of the application from the appstore if a valid OCSID has been provided.
Fixes https://github.com/owncloud/core/issues/17003
Diffstat (limited to 'lib/private/ocsclient.php')
-rw-r--r-- | lib/private/ocsclient.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/ocsclient.php b/lib/private/ocsclient.php index f10a97428e2..388f8f03052 100644 --- a/lib/private/ocsclient.php +++ b/lib/private/ocsclient.php @@ -284,6 +284,7 @@ class OCSClient { $app['description'] = (string)$tmp->description; $app['detailpage'] = (string)$tmp->detailpage; $app['score'] = (int)$tmp->score; + $app['level'] = (int)$tmp->approved; return $app; } |