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 18, 2025
1 parent bb246d7 commit 00f5749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/authx/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,7 @@ def add_pending_user_to_opa(user_token):
return response, 201 # 201 created, to indicate that we added the user

preapproved_users, status_code = list_preapproved_users_in_opa()
logger.debug(preapproved_users)
if status_code == 200:
if user_name in preapproved_users:
return approve_pending_user_in_opa(user_name)
Expand Down

0 comments on commit 00f5749

Please sign in to comment.