Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Entity API's entity_access() allows the following ops: 'view', 'update', 'create' or 'delete'.
Webform's webform_submission_access() handles: 'view', 'edit', 'delete' or 'list'.
So we've got a mismatch and need to change 'update' to 'edit' and figure out what to do for creation.
Comment | File | Size | Author |
---|---|---|---|
#1 | webform_entity_1794942.patch | 1.32 KB | chris.johnson |
Comments
Comment #1
chris.johnson CreditAttribution: chris.johnson commentedThis patch should resolve the discrepancy with 'update' and 'create'.
Because the 'create' permission was previously failing anyway, I think it should be relatively safe to just bail out at that point until #1794960 gets resolved. Otherwise, we could do this the way drewish suggested and call webform_node_view or duplicate Webform's code (ugly).
Comment #2
drewish CreditAttribution: drewish commentedChris forgot to switch the status.
Comment #3
drewish CreditAttribution: drewish commentedCommitted to the 7.x-1.x branch.
Comment #4
drewish CreditAttribution: drewish commentedAlso applied to multistep.