Skip to content

Commit

Permalink
Remove redundant check for user_groups
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Jan 27, 2022
1 parent f9822ca commit 4e2f7fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rain_api_core/urs_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,7 @@ def do_login(args, context, cookie_domain='', aux_headers=None):
else:
redirect_to = get_base_url(context)

# TODO(reweeden): Why is the last check there if we're setting to the empty list anyways?
if 'user_groups' not in user_profile or not user_profile['user_groups']:
if 'user_groups' not in user_profile:
user_profile['user_groups'] = []

jwt_cookie_payload = user_profile_2_jwt_payload(user_id, auth['access_token'], user_profile)
Expand Down

0 comments on commit 4e2f7fc

Please sign in to comment.