fix(apps): filter autoloading registration by app type too in loadApps

Signed-off-by: Josh <josh.t.richards@gmail.com>
pull/59679/head
Josh 4 months ago committed by GitHub
parent 288964baaa
commit acde2f5041
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      lib/private/App/AppManager.php

@ -256,7 +256,7 @@ class AppManager implements IAppManager {
// 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);

Loading…
Cancel
Save