Skip to content

Commit

Permalink
Merge pull request #18312 from nextcloud/fix/18249/do_not_disable_aut…
Browse files Browse the repository at this point in the history
…h_apps

Do not disable authentication apps
  • Loading branch information
rullzer authored Dec 10, 2019
2 parents c9d77b7 + 47bc0cc commit d66246c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/private/legacy/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ public static function loadApp(string $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);
}
}
Expand Down

0 comments on commit d66246c

Please sign in to comment.