aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-04-12 10:18:09 +0200
committerprovokateurin <kate@provokateurin.de>2024-05-10 07:22:25 +0200
commit4c5e05f37eaa8b3ee474ab20630a1780b41d4560 (patch)
tree66d8baa8dedacaeec6aeab144211f07a9dd45843 /lib/private
parent4e7b62a1e1e1285134dfa5c45565a39f588fe3fc (diff)
downloadnextcloud-server-4c5e05f37eaa8b3ee474ab20630a1780b41d4560.tar.gz
nextcloud-server-4c5e05f37eaa8b3ee474ab20630a1780b41d4560.zip
fix(Router): Stop loading routes of disabled apps
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Route/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Route/Router.php b/lib/private/Route/Router.php
index 90a6d85d8b5..ab277f129ed 100644
--- a/lib/private/Route/Router.php
+++ b/lib/private/Route/Router.php
@@ -154,7 +154,7 @@ class Router implements IRouter {
}
$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);