fix(Router): Stop loading routes of disabled apps

Signed-off-by: provokateurin <kate@provokateurin.de>
provokateurin 1 month ago
parent 715077ea70
commit c3917f8746
No known key found for this signature in database

@ -147,6 +147,9 @@ class Router implements IRouter {
if (isset($this->loadedApps[$app])) {
return;
}
if (!in_array($app, \OC_App::getEnabledApps())) {
return;
}
$appPath = \OC_App::getAppPath($app);
$file = $appPath . '/appinfo/routes.php';
if ($appPath !== false && file_exists($file)) {

Loading…
Cancel
Save