This commit is contained in:
@@ -35,6 +35,9 @@ class UserDocument(Document):
|
||||
user_id = fields.LongField()
|
||||
username = fields.KeywordField()
|
||||
email = fields.KeywordField()
|
||||
registration_code = fields.KeywordField()
|
||||
can_manage_registration_codes = fields.IntegerField()
|
||||
registration_manage_keys = fields.KeywordField(multi=True)
|
||||
password_hash = fields.KeywordField()
|
||||
password_salt = fields.KeywordField()
|
||||
permission = fields.IntegerField() # 还是2种权限,0为管理员,1为用户(区别在于0有全部权限,1在数据管理页面有搜索框,但是索引到的录入信息要根据其用户id查询其key,若其中之一与用户的manage_key字段匹配就显示否则不显示)
|
||||
|
||||
Reference in New Issue
Block a user