- Issue created by @EliasPapa
- 🇬🇧United Kingdom dave_______1
Having a similar issue.
Only way I can submit a from is:
1. Create new user
2. Give the role of the user access toAdminister webforms Warning: Give to trusted roles only; this permission has security implications. Allows administration of global YAML configuration and options.
3. Add a header to the request of
'Authorization': 'Basic ' + btoa("user:password"),
NB. If I give access to Administer webforms to Anonymous user I do not need to add the "Authorization" header
Obviously this is not something I can/will do but as of now I cannot use my contact form (headless website).
- 🇬🇧United Kingdom rviner
I noticed a similar permission error when upgrading from 4.0.3 and realised due to the extra permission checks introduced in 4.1.0 I had to tick off the 'View own webform submission' permission for the role.
This was due to the extra check in 'WebformSubmissionResource.php' to view the submission. I also noticed there's an error in the comment:
// Check user have permission to delete webform submission.
should be:
// Check user have permission to view webform submission.