Browse Source

Merge pull request #18312 from nextcloud/fix/18249/do_not_disable_auth_apps

Do not disable authentication apps
Roeland Jago Douma 4 years ago
parent
commit
d66246cf94
1 changed files with 3 additions and 2 deletions
  1. 3 2
      lib/private/legacy/app.php

+ 3 - 2
lib/private/legacy/app.php

@@ -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);
 				}
 			}