add user settings
This commit is contained in:
@ -7,6 +7,9 @@ class Users(Model):
|
||||
def get_avatar_url(self):
|
||||
return Avatars.find({"id": self.avatar_id}).file_path
|
||||
|
||||
def is_default_avatar(self):
|
||||
return int(Avatars.find({'id': self.avatar_id}).id) == 1
|
||||
|
||||
def is_guest(self):
|
||||
return self.permission == PermissionLevel.GUEST.value
|
||||
|
||||
|
Reference in New Issue
Block a user