Skip to content

Commit

Permalink
refactor: remove Enrollment ModelAdmin code that's not needed right now
Browse files Browse the repository at this point in the history
we are just adding / updating permissions for staff members
  • Loading branch information
angela-tran committed Jan 30, 2025
1 parent c28fdab commit e41efcf
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions benefits/core/admin/enrollment.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,6 @@ class SortableEnrollmentFlowAdmin(SortableAdminMixin, admin.ModelAdmin):
def get_exclude(self, request, obj=None):
fields = []

if not is_staff_member_or_superuser(request.user):
fields.extend(
[
"claims_scope",
"claims_eligibility_claim",
"claims_scheme_override",
"eligibility_api_url",
"eligibility_form_class",
]
)
if not request.user.is_superuser:
fields.extend(
[
Expand All @@ -80,16 +70,6 @@ def get_exclude(self, request, obj=None):
def get_readonly_fields(self, request, obj=None):
fields = []

if not is_staff_member_or_superuser(request.user):
fields.extend(
[
"system_name",
"transit_agency",
"supported_enrollment_methods",
"claims_provider",
"supports_expiration",
]
)
if not request.user.is_superuser:
fields.extend(
[
Expand Down

0 comments on commit e41efcf

Please sign in to comment.