diff --git a/lib/private/App/AppManager.php b/lib/private/App/AppManager.php index 8176ce4723ceb..2859e00aa8fed 100644 --- a/lib/private/App/AppManager.php +++ b/lib/private/App/AppManager.php @@ -256,7 +256,7 @@ public function loadApps(array $types = []): bool { // Add each apps' folder as allowed class path foreach ($apps as $app) { // If the app is already loaded then autoloading it makes no sense - if (!$this->isAppLoaded($app)) { + if (!$this->isAppLoaded($app) && ($types === [] || $this->isType($app, $types))) { try { $path = $this->getAppPath($app); \OC_App::registerAutoloading($app, $path);