Commit a05fd3ce authored by Joseph Olstad's avatar Joseph Olstad
Browse files

Issue #3238725 by mohit.bansal623, soerenP, joseph.olstad: _access key 'true'...

Issue #3238725 by mohit.bansal623, soerenP, joseph.olstad: _access key 'true' in lowercase letters not granting access
parent 9c73bd83
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Plugin/DMU/Routing/ContentRoute.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ class ContentRoute extends ConverterBase implements RouteConverterInterface, Con
    }

    if ($route->isAbsoluteAccess()) {
      $definition->setRequirement('_access', $route['access callback'] ? 'true' : 'false');
      $definition->setRequirement('_access', $route['access callback'] ? 'TRUE' : 'FALSE');
    }
    elseif ($route->isPermissionBased()) {
      $definition->setRequirement('_permission', $route['access arguments'][0]);