Skip to content
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

Viewer/Editor role can't create SCs or BLs #3338

Closed
jonnalley opened this issue Jan 22, 2025 · 0 comments · Fixed by #3346
Closed

Viewer/Editor role can't create SCs or BLs #3338

jonnalley opened this issue Jan 22, 2025 · 0 comments · Fixed by #3346
Assignees
Labels
bug Something isn't working bug-high High priority bug that needs attention sooner

Comments

@jonnalley
Copy link
Contributor

jonnalley commented Jan 22, 2025

When logged in as a viewer/editor, I can't create a services component or a budget line at all when creating a new contract, or trying to add an SC/BL in after a contract has already been created that I'm authorized to edit.

Expected Behavior

The SC and/or BL gets created as expected

Current Behavior

Currently, if I try to create a new SC, with or without a date, while I'm creating a new contract or not, the browser sees a 400 error. Same for a BL

Possible Cause

The Viewer/Editor role has no permissions to put, patch, or post a services component or budget line--only to get

Steps to Reproduce

  1. As a basic user, Attempt to create a new contract, and when you arrive to the section in the wizard for SC, choose to create a new SC with or without any dates and choose SC1.
  2. Click the button to create the SC.
  3. You should get sent to the generic error page and in your developer console, you should have a 403 error

Context

saw this in dev and staging

Detailed Description

Allow Viewer/Editors to create new SCs.

Possible Implementation

Add PUT_BUDGET_LINE_ITEM, PATCH_BUDGET_LINE_ITEM, POST_BUDGET_LINE_ITEM, DELETE_BUDGET_LINE_ITEM, PUT_SERVICES_COMPONENT, PATCH_SERVICES_COMPONENT, POST_SERVICES_COMPONENT, and DELETE_SERVICES_COMPONENT to the Viewer/Editor role in all environments

@jonnalley jonnalley added bug Something isn't working bug-high High priority bug that needs attention sooner labels Jan 22, 2025
@jonnalley jonnalley self-assigned this Jan 23, 2025
@jonnalley jonnalley changed the title Viewer/Editor role can't create a services component Viewer/Editor role can't create SCs or BLs Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working bug-high High priority bug that needs attention sooner
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant