Access permissions not working

Created on 17 January 2024, 10 months ago
Updated 5 April 2024, 7 months ago

I have a webform that I want users of a certain role to be able to directly access the form ( e.g./webform/mywebform) and do a submission

I've gone into the Access tab and for "Create submissions" i've selected my relevant roles who should be able to access the form to do a submission.

But when accessing /webform/mywebform as this user i'm getting access denied. When viewing /webform/mywebform as admin I see the form and the message:
"Only webform administrators are allowed to access this page and create new submissions."

Am I doing this correctly and this is how I can give access to view/submit the form on the direct URL? If so do you have any ideas what im doing wrong? I had this setup and working fine and only seems to have broken after updating webforms to 6.2.2

Looking at the route for '/webform/{webform}' the access is on _entity_access: 'webform.submission_page' is that what these settings are supposed to effect?

Steps to recreate:
1) Create a webform with a couple of fields of your choice
2) Go to the settings > access tab on that webform
3) Set the "Create submissions" to a role of your choice
4) Create/log in with a non-admin user that has the role you selected
5) Access the webform directly e.g. /webform/

Expected:
The user will see the form and be able to make a submission

Actual:
User is shown permission denied

πŸ› Bug report
Status

Closed: works as designed

Version

6.2

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom maseyuk

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024