Skip to content

Commit

Permalink
add def value for SUPER_ADMINS
Browse files Browse the repository at this point in the history
  • Loading branch information
bguil committed Feb 12, 2025
1 parent 300edde commit 2127685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/user/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def get(self) -> User:
User: User entity
"""
user = UserService.get_by_id(current_user.id)
super_admins = os.getenv("SUPER_ADMINS").split(",")
super_admins = os.getenv("SUPER_ADMINS",default="").split(",")
changes: UserInterface = {"last_seen": datetime.utcnow(), "can_toggle_super_admin": user.username in super_admins }
user = UserService.update(user, changes)
return user
Expand Down

0 comments on commit 2127685

Please sign in to comment.