Hot answers tagged

2

Also - the answer above is incomplete since it skips a check on access to the node itself. This is possibly a recipe for an access bypass vulnerability. I'd think you'd want a route more like: mymodule.check_test: path: '/checktest/{node}' defaults: _controller: '\Drupal\mymodule\Controller\CheckTestController::content' requirements: ...


Only top voted, non community-wiki answers of a minimum length are eligible