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.

CommentFileSizeAuthor
#1 webform_entity_1794942.patch1.32 KBchris.johnson

Comments

chris.johnson’s picture

StatusFileSize
new1.32 KB

This 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).

drewish’s picture

Status: Active » Needs review

Chris forgot to switch the status.

drewish’s picture

Status: Needs review » Fixed

Committed to the 7.x-1.x branch.

drewish’s picture

Also applied to multistep.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.