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 May 10, 2024
1 parent 4e7b62a commit 4c5e05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Route/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function loadRoutes($app = null) {
}
$this->eventLogger->start('route:load:' . $requestedApp, 'Loading Routes for ' . $requestedApp);

if ($requestedApp !== null) {
if ($requestedApp !== null && in_array($requestedApp, \OC_App::getEnabledApps())) {
$routes = $this->getAttributeRoutes($requestedApp);
if (count($routes) > 0) {
$this->useCollection($requestedApp);
Expand Down

0 comments on commit 4c5e05f

Please sign in to comment.