Route access check for views pages in admin context

Created on 17 July 2023, almost 2 years ago

Drupal Version

Drupal 9.5.9

Domain module version

8.x-1.0-beta8

Expected Behavior

The access check should only be done for the frontend and not the backend?
I'm not sure if this is something to be fixed here...

Actual Behavior

Please see 🐛 Menu items change from order when saving Postponed

We encountered a problem when saving menu items. Some menu items are losing their order or are in different order. After investigating, this happens due to views pages routes have an access check. The access check is needed as ofcourse you need access checks on paths. But when using menu links pointing to this pages, the access check is also done in the backend where this module lives.

Steps to reproduce

  • Install domain_menu_access
  • Add a views page with a route
  • Add access check to this route for a domain
  • Add a menu link to this page and sort it between other items
  • Visit another domain with a user different then user 1
  • Modify the sorting
  • Go back to the original domain and you should see the menu link in a different order
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

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

Comments & Activities

Production build 0.71.5 2024