Skip to content

[RFC][Security] Define access control rule for route #20257

@ro0NL

Description

@ro0NL

Hi,

Currently the access_control setting only allows regex paths, wouldn't it be nice to allow a route name as well. This would avoid duplicating paths between routing and security.

access_control:
  - { path: '^/admin' }
  - { route: 'some_route_id' }

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions