Currently, for fieldsets and containers you can set create, view, and edit permissions for the element and all of its children elements. I would love to see this exact same functionality applied to Wizard Pages.

Use case:
I am currently building an employment application form. We want a to add a page for the Human Resources Department that contains fields about race, gender etc. We want the ability to restrict access to this page to only the person applying, and those with a special "Human Resources" role.

This can be implemented using fieldsets for the time being, but it is a little clumsy, because I have to stick it on a an existing wizard page, where it doesn't really make sense.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ebren created an issue. See original summary.

jrockowitz’s picture

That is an awesome concept/feature.

It is going to require some very minor refactoring and test coverage.

  • de67da5 committed on 2902631-page-access-controls
    Issue #2902631: Restrict Wizard Page access by role. Refactor getPages...
jrockowitz’s picture

jrockowitz’s picture

@ebren Most of the patches are going to be for testing the needed refactoring to get this to work.

  • e07ab1a committed on 2902631-page-access-controls
    Issue #2902631: Restrict Wizard Page access by role. Refactor getPages...

  • a41bad8 committed on 2902631-page-access-controls
    Issue #2902631: Restrict Wizard Page access by role. Refactor getPages...

  • af33f22 committed on 2902631-page-access-controls
    Issue #2902631: Restrict Wizard Page access by role. Refactor getPages...
jrockowitz’s picture

Status: Needs review » Needs work

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

  • 69d5eb7 committed on 2902631-page-access-controls
    Issue #2902631: Restrict Wizard Page access by role. Refactor getPages...
jrockowitz’s picture

Status: Needs work » Needs review
FileSize
50.59 KB

  • jrockowitz authored f2e016e on 8.x-5.x
    Issue #2902631 by jrockowitz: Restrict Wizard Page access by role
    
jrockowitz’s picture

Status: Needs review » Fixed

All the tests are passing and I need to start working on a related issue in a new ticket, so I committed the patch. Please download the latest dev release to review.

Status: Fixed » Closed (fixed)

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