Currently, weborm_entity_submission_access() always returns FALSE for 'create' ops. This is because there's no clean way to determine access to submitting a webform (the logic is tangled into webform_node_view()) -- see #1794960: Put the logic for checking if a user can submit webforms into a function.

However, since there's been no movement on that issue, can we at least implement the suggested workaround. Otherwise, it's impossible to create a webform submission via the entity api.

CommentFileSizeAuthor
#1 2080313-webform-entity-create.patch1.17 KBwodenx
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

wodenx’s picture

Status: Active » Needs review
FileSize
1.17 KB
AaronBauman’s picture

Issue summary: View changes

If they can access the node view, then they can create a submission.

I'm not sure that this is strictly true, however maybe it's not a big risk to make this assumption.

I don't see a strong downside to allowing this method of access, but I'd like another opinion before RTBC / commit.