Merge pull request #18333 from nextcloud/backport/18312/stable16

[stable16] Do not disable authentication apps
This commit is contained in:
Roeland Jago Douma 2019-12-10 19:28:43 +01:00 committed by GitHub
commit 5c58a21ef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -158,8 +158,9 @@ class OC_App {
throw $ex;
}
\OC::$server->getLogger()->logException($ex);
if (!\OC::$server->getAppManager()->isShipped($app)) {
// Only disable apps which are not shipped
if (!\OC::$server->getAppManager()->isShipped($app) && !self::isType($app, ['authentication'])) {
// Only disable apps which are not shipped and that are not authentication apps
\OC::$server->getAppManager()->disableApp($app, true);
}
}