privilegeTargets:
  'Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilege':
    'Neos.RedirectHandler.Ui:Module':
      matcher: 'method(Neos\RedirectHandler\Ui\Controller\ModuleController->(.*)Action())'

  'Neos\Neos\Security\Authorization\Privilege\ModulePrivilege':
    'Neos.RedirectHandler.Ui:Backend.Module.Management.Redirects':
      matcher: 'management/redirects'

roles:
  'Neos.Neos:Administrator':
    privileges:
      - privilegeTarget: 'Neos.RedirectHandler.Ui:Backend.Module.Management.Redirects'
        permission: GRANT
      - privilegeTarget: 'Neos.RedirectHandler.Ui:Module'
        permission: GRANT

  'Neos.RedirectHandler.Ui:RedirectAdministrator':
    privileges:
      - privilegeTarget: 'Neos.RedirectHandler.Ui:Backend.Module.Management.Redirects'
        permission: GRANT
      - privilegeTarget: 'Neos.RedirectHandler.Ui:Module'
        permission: GRANT
