Closed (fixed)
Project:
Drupal core
Version:
8.6.x-dev
Component:
media system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2018 at 17:22 UTC
Updated:
14 May 2018 at 14:14 UTC
Jump to comment: Most recent, Most recent file
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!