auth: Add a method to check if an AuthUser is the default user.
johbo -
r29:d708ecf5 default
Not Reviewed
Show More
Add another comment
TODOs: 0 unresolved 0 Resolved
COMMENTS: 0 General 0 Inline
@@ -865,6 +865,10
865 return auth_tokens
865 return auth_tokens
866
866
867 @property
867 @property
868 def is_default(self):
869 return self.username == User.DEFAULT_USER
870
871 @property
868 def is_admin(self):
872 def is_admin(self):
869 return self.admin
873 return self.admin
870
874
Comments 0
You need to be logged in to leave comments. Login now