Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-12-10 21:28:43 +0300
committerGitHub <noreply@github.com>2019-12-10 21:28:43 +0300
commit5c58a21ef7b6a36c3657d7212dc30ea9459d26e0 (patch)
treed0d61e8cf5fb22dd4ee8ac50494f2afabed148e1 /lib
parentf6320926486b95781d550016270ae0220ede4017 (diff)
parent139e45f3602ea97af2f290a38ec40ec0addcfda0 (diff)
Merge pull request #18333 from nextcloud/backport/18312/stable16
[stable16] 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 0dcbadcd083..a2ffc483d39 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);
}
}