Keep all shipped apps enabled because they should be okay

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2018-01-16 11:39:48 +01:00
parent c25da25180
commit d639dfacb7
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
1 changed files with 2 additions and 2 deletions

View File

@ -236,8 +236,8 @@ class OC_App {
require_once $app . '/appinfo/app.php'; require_once $app . '/appinfo/app.php';
} catch (Error $ex) { } catch (Error $ex) {
\OC::$server->getLogger()->logException($ex); \OC::$server->getLogger()->logException($ex);
$blacklist = \OC::$server->getAppManager()->getAlwaysEnabledApps(); if (!\OC::$server->getAppManager()->isShipped($app)) {
if (!in_array($app, $blacklist)) { // Only disable apps which are not shipped
self::disable($app); self::disable($app);
} }
} }