Problem/Motivation

Currently, only users with the ability to update a webform are allowed to test the webform. This is reasonable for most use cases because the 'Test' tab should only be used during development of a webform. Still, there are other use cases where someone may need to be able to quickly test a complex form. If we provide a dedicated 'test' operation developer can use hook_ENTITY_TYPE_access() to decide who can test which webform.

Proposed resolution

Provide dedicated 'test' webform operation and access rule

Form administrators can now select which users, roles, and permissions are allow to test a webform.

Remaining tasks

  • Create dedicated 'test' operation
  • Add 'test' to access rules
  • Write tests.
CommentFileSizeAuthor
#8 2951368-8.patch125.86 KBjrockowitz
#4 2951368-4.patch130.49 KBjrockowitz

Comments

jrockowitz created an issue. See original summary.

jrockowitz’s picture

Title: Provide dedicated 'test' webform operation » Provide dedicated 'test' webform operation and access rule
Issue summary: View changes

  • jrockowitz committed 5fe4899 on 2951368-test-access-rules
    Issue #2951368: Provide dedicated 'test' webform operation and access...
jrockowitz’s picture

Status: Active » Needs review
StatusFileSize
new130.49 KB

  • jrockowitz committed 265f770 on 2951368-test-access-rules
    Issue #2951368: Provide dedicated 'test' webform operation and access...

Status: Needs review » Needs work

The last submitted patch, 4: 2951368-4.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

  • jrockowitz committed 8b172c3 on 2951368-test-access-rules
    Issue #2951368: Provide dedicated 'test' webform operation and access...
jrockowitz’s picture

Status: Needs work » Needs review
StatusFileSize
new125.86 KB

  • jrockowitz committed 87b00e3 on 8.x-5.x
    Issue #2951368 by jrockowitz: Provide dedicated 'test' webform operation...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.