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
- Write a merge request
- Review
- Commit
User interface changes
None
API changes
None
Data model changes
None
Issue fork domain-3555766
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
Comment #3
idebr commentedThe 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
Comment #5
mably commented