Closed (fixed)
Project:
Node Preview Permissions
Version:
1.0.2
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Reporter:
Created:
25 Aug 2023 at 23:51 UTC
Updated:
13 Sep 2023 at 13:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
gcbComment #4
bobooon commentedGood callout! I went a different route with the implementation, however. Instead of overriding the existing
access_check.node.previewservice the module provides it's ownaccess_check.node.preview_permissionsservice. Drupal registers every access check provider using theapplies_toproperty. If either theaccess_check.node.previeworaccess_check.node.preview_permissionsaccess checker returns forbidden the preview route responds with access denied. Furthermore, the new service is used to set the preview button element access.