Skip to content

Commit

Permalink
Fix is_admin property in User class
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusWirtz committed Apr 19, 2021
1 parent 2d0c555 commit d9ed1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TM1py/Objects/User.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def password(self) -> str:

@property
def is_admin(self) -> bool:
return 'ADMIN' in self.groups
return "ADMIN" in CaseAndSpaceInsensitiveSet(*self.groups)

@property
def groups(self) -> List[str]:
Expand Down

0 comments on commit d9ed1b2

Please sign in to comment.