##// END OF EJS Templates
auth: Add a method to check if an AuthUser is the default user.
johbo -
r29:d708ecf5 default
parent child Browse files
Show More
@@ -865,6 +865,10 b' class AuthUser(object):'
865 865 return auth_tokens
866 866
867 867 @property
868 def is_default(self):
869 return self.username == User.DEFAULT_USER
870
871 @property
868 872 def is_admin(self):
869 873 return self.admin
870 874
General Comments 0
You need to be logged in to leave comments. Login now