Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 11, 2023
1 parent a42d369 commit 2949cec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion oauthenticator/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ async def user_is_authorized(self, auth_model):
403, f"Google account domain @{user_email_domain} not authorized."
)

if not self.allowed_users and (self.allowed_google_groups or self.admin_google_groups):
if not self.allowed_users and (
self.allowed_google_groups or self.admin_google_groups
):
google_groups = self._google_groups_for_user(user_email, user_email_domain)
if not google_groups:
return False
Expand Down

0 comments on commit 2949cec

Please sign in to comment.