Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Apr 12, 2023
1 parent 7bb937a commit bda8ece
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions oauthenticator/openshift.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,10 @@ async def user_is_authorized(self, auth_model):
# User is authorized if either in allowed_groups or in admin_groups
all_allowed_groups = self.allowed_groups
if self.admin_groups:
all_allowed_groups = all_allowed_groups.unions(self.admin_groups)
if not self.user_groups_in_allowed_groups(user_groups, all_allowed_groups):
all_allowed_groups = all_allowed_groups.union(self.admin_groups)
if not self.user_groups_in_allowed_groups(
user_groups, all_allowed_groups
):
self.log.warning(msg)
return False

Expand Down

0 comments on commit bda8ece

Please sign in to comment.