Problem/Motivation
Currently, the module is getting all the pages for a webform which includes pages the user does not have access to. We should only validate the pages the user has access to.
Steps to reproduce
- Create a webform
- Grant access to only certain pages
- try and submit
Proposed resolution
Use the 'edit', 'add', etc parameters in the getPages() function calls
Issue fork webformnavigation-3210778
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
rymcveighComment #4
lkacenjaI tested this out on my local environment and it seems to work well. We are reducing the pages a user can see by overriding the WebformSubmissionConditionsValidator service. With the code from this branch, form validation related to navigation is only executed on pages a user has visited. For other cases where the pages are not reduced there should be no impact. We also ran this branch through our testing suite that uses behat to assess a number of complicated webforms and found no issues.
Comment #6
rymcveigh