summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-10 14:43:15 +0100
committerGitHub <noreply@github.com>2019-12-10 14:43:15 +0100
commitd66246cf94eb1a13af9200c3dc79bf2f81b3346e (patch)
tree2e1204582c0053bfdb8c7f27ead843f30285f222 /lib
parentc9d77b7f7e6382af0aedfb8312042a340f0ac3b3 (diff)
parent47bc0cc8a8422f329dbf971efd9b6f8c9f202414 (diff)
downloadnextcloud-server-d66246cf94eb1a13af9200c3dc79bf2f81b3346e.tar.gz
nextcloud-server-d66246cf94eb1a13af9200c3dc79bf2f81b3346e.zip
Merge pull request #18312 from nextcloud/fix/18249/do_not_disable_auth_apps
Do not disable authentication apps
Diffstat (limited to 'lib')
-rw-r--r--lib/private/legacy/app.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/legacy/app.php b/lib/private/legacy/app.php
index 98700056111..b20fd8543c8 100644
--- a/lib/private/legacy/app.php
+++ b/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);
}
}