An entry in user_badges.links.task.yml is missing for /user/{user}/badges. When this is added, the access check can fail on adjacent tabs such as for userpoints. In some cases $user_from_url is the user entity and in others it is simply the string of the user id. I've created a patch that makes these changes and uses dependency injection.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johne created an issue. See original summary.

johne’s picture

Here's that patch

mohit_aghera’s picture

Status: Active » Needs review
FileSize
4.16 KB
1.7 KB

Thanks @johne for initiating the patch.
The patch is working as expected. However, as per latest namespacing change for access related classes, I've refactored it.
I've updated the patch.
Code is essentially the same, I've just moved it as per namespace changes.

  • mohit_aghera committed b5dd308 on 8.x-1.x
    Issue #3110467 by mohit_aghera, johne: missing and broken access check...
mohit_aghera’s picture

Status: Needs review » Fixed

Merging it for now.

Status: Fixed » Closed (fixed)

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