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

Signed-off-by: Josh <josh.t.richards@gmail.com>
This commit is contained in:
Josh 2026-04-16 14:49:03 -04:00 committed by GitHub
parent 288964baaa
commit acde2f5041
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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