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.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2080313-webform-entity-create.patch | 1.17 KB | wodenx |
Comments
Comment #1
wodenx CreditAttribution: wodenx commentedComment #2
AaronBaumanI'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.