Skip to content

Commit

Permalink
Use the correct kwarg for a user when creating super user
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisLovering committed Aug 19, 2024
1 parent 9468a45 commit 5210cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thallium-backend/src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def __call__(self, request: Request) -> HTTPAuthorizationCredentials:
detail="Incorrect scheme passed",
)
if self.allow_regular_users and creds.credentials == CONFIG.super_admin_token.get_secret_value():
request.state.user = User(user_id=uuid4(), permissions=~UserPermission(0))
request.state.user = User(id=uuid4(), permissions=~UserPermission(0))
return

jwt_data = verify_jwt(
Expand Down

0 comments on commit 5210cec

Please sign in to comment.