Skip to content

Commit

Permalink
Make production the default
Browse files Browse the repository at this point in the history
  • Loading branch information
CannonLock committed Mar 14, 2024
1 parent ad06ea0 commit 54251a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/routes/security.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ async def get_groups(
async def has_access(groups: list[int] = Depends(get_groups)) -> bool:
"""Check if the user has access to the group"""

if os.environ['ENVIRONMENT'] == 'development':
if 'ENVIRONMENT' in os.environ and os.environ['ENVIRONMENT'] == 'development':
return True

return 1 in groups
Expand Down

0 comments on commit 54251a7

Please sign in to comment.