Anonymous users can't see webforms (either directly or via node attache view). They are getting a permissions message: "You are not allowed to access this page."

This error appears on the registry.
Path: /entrades. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\webform\WebformSubmissionForm->setEntity() (line 409 of /httpdocs/web/modules/contrib/webform/src/WebformSubmissionForm.php).

The webform is enabled, active, not archived, the anonymous users are selected on the Access > Create submissions area and the anonymous users can access published content.

What else can I try?

Thanks!

Comments

polmaresma created an issue. See original summary.

jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new150.8 KB

You need to uncheck 'Limit total to one submission per webform/source entity' (/admin/structure/webform/manage/contact/settings/submissions) and set then submission limit to 1.

jrockowitz’s picture

Status: Needs review » Closed (works as designed)
wrapper’s picture

You need to uncheck 'Limit total to one submission per webform/source entity' (/admin/structure/webform/manage/contact/settings/submissions) and set then submission limit to 1.

Thanks, this solved the issue for me also. However I think this should be reviewed as hiding a form to anon users once populated once (in my case an email subscribe form) seems to be pretty unintuitive default behaviour