mirror of
https://github.com/nextcloud/server.git
synced 2025-03-16 01:05:24 +00:00
fix(Router): Stop loading routes of disabled apps
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
4e7b62a1e1
commit
4c5e05f37e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue