From 00a65e30ce703e93e8e4c7a3658fe28271d2d623 Mon Sep 17 00:00:00 2001 From: Lukas Reschke Date: Fri, 19 Jun 2015 19:01:58 +0200 Subject: 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 --- tests/lib/ocsclienttest.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/lib/ocsclienttest.php b/tests/lib/ocsclienttest.php index ca8a2a2a2e8..1e9e551f34e 100644 --- a/tests/lib/ocsclienttest.php +++ b/tests/lib/ocsclienttest.php @@ -732,6 +732,7 @@ class OCSClientTest extends \Test\TestCase { 1 + 200 @@ -770,6 +771,7 @@ class OCSClientTest extends \Test\TestCase { 'changed' => 1404743680, 'description' => 'Placeholder for future updates', 'score' => 50, + 'level' => 200, ]; $this->assertSame($expected, $this->ocsClient->getApplication('MyId')); } -- cgit v1.2.3