-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VAGAOV-TEAM-97941: Adds Form Builder role and permission #20192
Conversation
Checking composer.lock changes... |
Note: As a form builder user, if I click on "Continue" on the Name and DOB page of the Form Builder, I'm currently taken to https://va-gov-cms.ddev.site/node/$NODE_ID/edit and given an "Access denied" message because I do not have the necessary permissions to edit a Digital Form. I imagine this will be fixed as more pages are added to the Form Builder UI. Is this the expected behavior at the moment? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code all looks good. I had one question about the current Form Builder experience for a non-admin user with the form builder permission, but it seems to be intended behavior, so I'm approving.
Navigating to the page in question is a temporary way to demonstrate that the work being done in the Form Builder is having the desired effect. In its final state, there will be no such navigation between the Form Builder and the default Digital Form node-edit screen. The experience you describe actually helps confirm that the intended behavior of this PR is happening - a |
Checking composer.lock changes... |
a65522d
to
eb6944c
Compare
Checking composer.lock changes... |
…uilder` permission.
- Use RouteSubscriber rather than repeating same permission on every route. - Update to use new permission.
…existing tests effectively test the RouteSubscriber functionality.
…n as a second parameter. We'll set the permission whenever one is not set.
eb6944c
to
dcbb5e9
Compare
Checking composer.lock changes... |
Cypress Accessibility Violations
|
Description
Closes department-of-veterans-affairs/va.gov-team#97941
Testing done
Screenshots
Without correct role/permission:
With correct role/permission:
QA steps
Create two new users:
Form Builder user
is in the list of roles.Form Builder user
.Authenticated user
.Log in the new
Form Builder user
./form-builder/intro
.Log in the new
Authenticated user
./form-builder/intro
./admin/content
.form-builder/
.Definition of Done
Select Team for PR review
CMS Team
Public websites
Facilities
User support
Accelerated Publishing
Form Builder
Is this PR blocked by another PR?
DO NOT MERGE
Does this PR need review from a Product Owner
Needs PO review
CMS user-facing announcement
Is an announcement needed to let editors know of this change?