Skip to content

Commit

Permalink
- linting
Browse files Browse the repository at this point in the history
  • Loading branch information
elipe17 committed Dec 10, 2024
1 parent baf68df commit 0e612cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tdrs-backend/tdpservice/users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def __str__(self):

def is_in_group(self, group_names: list) -> bool:
"""Return whether or not the user is a member of the specified Group(s)."""
if type(group_names) == str:
if type(group_names) is str:
group_names = [group_names]
return self.groups.filter(name__in=group_names).exists()

Expand Down

0 comments on commit 0e612cc

Please sign in to comment.