diff options
Diffstat (limited to 'lib/private/AppFramework/Routing/RouteConfig.php')
-rw-r--r-- | lib/private/AppFramework/Routing/RouteConfig.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/AppFramework/Routing/RouteConfig.php b/lib/private/AppFramework/Routing/RouteConfig.php index af745a35fcc..2f2d51f6e1a 100644 --- a/lib/private/AppFramework/Routing/RouteConfig.php +++ b/lib/private/AppFramework/Routing/RouteConfig.php @@ -55,7 +55,7 @@ class RouteConfig { /** @var string[] */ private $controllerNameCache = []; - public const ROOT_URL_APPS = [ + protected $rootUrlApps = [ 'cloud_federation_api', 'core', 'files_sharing', @@ -126,7 +126,7 @@ class RouteConfig { $postfix = $route['postfix'] ?? ''; $defaultRoot = $this->appName === 'core' ? '' : '/apps/' . $this->appName; $root = $route['root'] ?? $defaultRoot; - if ($routeNamePrefix === '' && !\in_array($this->appName, self::ROOT_URL_APPS, true)) { + if ($routeNamePrefix === '' && !\in_array($this->appName, $this->rootUrlApps, true)) { // Only allow root URLS for some apps $root = $defaultRoot; } |