Problem/Motivation

\Drupal\domain\Access\DomainListCheck::viewDomainList checks the current user has one of a series of permissions. This can be implemented in a route declaration in domain.routing.yml, see https://www.drupal.org/docs/drupal-apis/routing-system/structure-of-routes

Proposed resolution

Replace DomainListCheck with permissions in domain.routing.yml

Remaining tasks

  1. Write a merge request
  2. Review
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

Issue fork domain-3555766

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

idebr created an issue. See original summary.

idebr’s picture

Status: Active » Needs review

The merge request replaces DomainListCheck with permissions in domain.routing.yml

As a bonus, the access result now has cache metadata so it can be cached

  • mably committed 3a43500b on 3.x authored by idebr
    Issue #3555766 by idebr: Replace DomainListCheck with permissions in...
mably’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.