use _access: TRUE rather than 'access content'

Created on 24 July 2024, 5 months ago
Updated 27 August 2024, 4 months ago

Problem/Motivation

    # Anyone can access webhooks. We will perform access logic and token
    # checking at WebhookReceiver::process().
    _permission: 'access content'

This won't work if node module isn't enabled, or it we don't want the anonymous user to view nodes.

The right way to grant universal access to a route is with

>_access: 'TRUE'

See https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom joachim

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024