Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers created an issue. See original summary.

tstoeckler’s picture

Issue tags: +dcruhr18
owenbush’s picture

Looking at this at DrupalCon Nashville.

owenbush’s picture

When looking into this issue it doesn't appear that a definitive 'forbidden' AccessResult is ever returned. If none of the permission checks pass in this case, the access is deferred until later by returning AccessResult::neutral() for both 'update' and 'delete'. Is this actionable as it stands?

Wim Leers’s picture

Yes, you can add the helpful reason directly in the return AccessResult::neutral()->cachePerPermissions(); calls :)

msankhala’s picture

Here is a patch.

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

Thank you, @msankhala!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Crediting @Wim Leers for reviews.

Committed 4022cc1 and pushed to 8.6.x. Thanks!

  • alexpott committed 4022cc1 on 8.6.x
    Issue #2950129 by msankhala, Wim Leers: Add helpful reason for 'update'...

Status: Fixed » Closed (fixed)

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