Skip to content

Commit

Permalink
Update auth.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Jan 20, 2025
1 parent 65a30cf commit 17d0328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,10 @@ def add_program_to_opa(program_auth):
# add the users to the preapproved user list
for user_id in program_auth["team_members"]:
# if the user isn't already approved, make sure they will be:
response, status_code = authx.auth.add_preapproved_user_in_opa(user_id)
response, status_code = add_preapproved_user_in_opa(user_id)
for user_id in program_auth["program_curators"]:
# if the user isn't already approved, make sure they will be:
response, status_code = authx.auth.add_preapproved_user_in_opa(user_id)
response, status_code = add_preapproved_user_in_opa(user_id)

return {"message": f"{program_id} not added"}, status_code

Expand Down Expand Up @@ -700,7 +700,7 @@ def set_role_type_in_opa(role_type, members):
if role_type in result['site_roles']:
for user_id in members:
# if the user isn't already approved, make sure they will be:
response, status_code = authx.auth.add_preapproved_user_in_opa(user_id)
response, status_code = add_preapproved_user_in_opa(user_id)

result['site_roles'][role_type] = members
result, status_code = set_service_store_secret("opa", key=f"site_roles", value=json.dumps(result))
Expand Down

0 comments on commit 17d0328

Please sign in to comment.