Skip to content

Commit

Permalink
Merge pull request #44797 from nextcloud/fix/router/loading-disabled-…
Browse files Browse the repository at this point in the history
…apps
  • Loading branch information
provokateurin authored May 10, 2024
2 parents 4e7b62a + 4c5e05f commit 6a4e12d
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 6a4e12d

Please sign in to comment.