Skip to content

Commit

Permalink
chore: remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
angela-tran committed Aug 28, 2024
1 parent 04d3c19 commit b69153f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benefits/core/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,13 +148,13 @@ def add_google_sso_userinfo(user, request):
logger.warning("google_sso_access_token not found in session.")


def add_staff_user_to_group(user, request):
def add_staff_user_to_group(user):
if user.email in settings.GOOGLE_SSO_STAFF_LIST:
staff_group = Group.objects.get(name=settings.STAFF_GROUP_NAME)
staff_group.user_set.add(user)


def add_transit_agency_staff_user_to_group(user, request):
def add_transit_agency_staff_user_to_group(user):
user_sso_domain = user.email.split("@")[1]
if user_sso_domain:
agency = models.TransitAgency.objects.filter(sso_domain=user_sso_domain).first()
Expand Down

0 comments on commit b69153f

Please sign in to comment.