Skip to content

Commit

Permalink
Pass in get_user_groups wherever it is called
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed May 1, 2024
1 parent 23b1c80 commit 178675f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions oauthenticator/oauth2.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,7 @@ async def check_allowed(self, username, auth_model):

# allow users who are members of allowed_groups
if self.allowed_groups:
user_info = auth_model["auth_state"][self.user_auth_state_key]
user_groups = self.get_user_groups(user_info)
user_groups = self.get_user_groups(auth_model)
if any(user_groups & self.allowed_groups):
return True

Expand Down

0 comments on commit 178675f

Please sign in to comment.