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?
Comments
Comment #2
wim leersComment #3
tstoecklerComment #4
owenbush commentedLooking at this at DrupalCon Nashville.
Comment #5
owenbush commentedWhen 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?
Comment #6
wim leersYes, you can add the helpful reason directly in the
return AccessResult::neutral()->cachePerPermissions();calls :)Comment #7
msankhala commentedHere is a patch.
Comment #8
wim leersThank you, @msankhala!
Comment #9
alexpottCrediting @Wim Leers for reviews.
Committed 4022cc1 and pushed to 8.6.x. Thanks!