Skip to content

Commit

Permalink
fix: update role user not exist (#2489)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu327 committed Jan 22, 2024
1 parent e27ff29 commit 3407a9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saas/backend/biz/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ class RoleListQuery:

def __init__(self, role: Role, user: Optional[User] = None) -> None:
self.role = role
self.user = User.objects.get(username=user.username) if user else None
self.user = User.objects.filter(username=user.username).first() if user else None

def list_system(self) -> List[System]:
"""
Expand Down

0 comments on commit 3407a9e

Please sign in to comment.