Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
jefer94 committed Jan 18, 2025
1 parent 3737b08 commit d6d9695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion breathecode/authenticate/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

@feature.availability("authenticate.set_google_credentials")
def set_google_credentials() -> bool:
if os.getenv("SET_GOOGLE_CREDENTIALS") in feature.TRUE:
if os.environ.get("SET_GOOGLE_CREDENTIALS") in feature.TRUE:
return True

return False
Expand Down
2 changes: 1 addition & 1 deletion breathecode/authenticate/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2082,7 +2082,7 @@ def get_google_token(request, token=None):
]

if academy_settings in ["overwrite", "set"]:
if feature.is_enabled("authenticate.set_google_credentials", default=True) is False:
if feature.is_enabled("authenticate.set_google_credentials", default=False) is False:
raise ValidationException(
"Setting academy google credentials is not available",
slug="set-google-credentials-not-available",
Expand Down

0 comments on commit d6d9695

Please sign in to comment.