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

Admin interface: Cal-ITP Benefits staff users can edit existing configuration #2200

Closed
3 tasks done
angela-tran opened this issue Jul 4, 2024 · 0 comments · Fixed by #2226
Closed
3 tasks done

Admin interface: Cal-ITP Benefits staff users can edit existing configuration #2200

angela-tran opened this issue Jul 4, 2024 · 0 comments · Fixed by #2226
Assignees

Comments

@angela-tran
Copy link
Member

angela-tran commented Jul 4, 2024

Implementation:

  • Add a data migration that gives the Cal-ITP group permission to change the models listed under Acceptance Criteria
  • In the ModelAdmins for each model, implement get_readonly_fields so that fields that should be not be editable from users in the Cal-ITP group are rendered as read-only

Acceptance Criteria

  • For EligibilityTypes, EligibilityVerifiers, AuthProviders, PaymentProcessors, and TransitAgencys, Cal-ITP Benefits staff users can edit fields on those existing objects if the field is listed as writable for Cal-ITP in the Benefits admin configuration spreadsheet

Additional context

Depends on #2199
Part of #2001

@angela-tran angela-tran self-assigned this Jul 16, 2024
@angela-tran angela-tran linked a pull request Jul 16, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant