Skip to content

Commit

Permalink
fix(Router): Stop loading routes of disabled apps
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Apr 12, 2024
1 parent 715077e commit c3917f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/Route/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public function loadRoutes($app = null) {
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)) {
Expand Down

0 comments on commit c3917f8

Please sign in to comment.