- Issue created by @gcb
- Status changed to Needs review
over 1 year ago 11:59pm 25 August 2023 - 04dc88b7 committed on 1.x
Issue #3383501 by gcb: Block actual preview route access
- 04dc88b7 committed on 1.x
- Assigned to robphillips
- Status changed to Fixed
over 1 year ago 1:05pm 30 August 2023 - πΊπΈUnited States robphillips
Good callout! I went a different route with the implementation, however. Instead of overriding the existing
access_check.node.preview
service the module provides it's ownaccess_check.node.preview_permissions
service. Drupal registers every access check provider using theapplies_to
property. If either theaccess_check.node.preview
oraccess_check.node.preview_permissions
access checker returns forbidden the preview route responds with access denied. Furthermore, the new service is used to set the preview button element access. Automatically closed - issue fixed for 2 weeks with no activity.