avoid saving unnecesary data into users collection
This commit is contained in:
parent
e48a29c0a6
commit
b7c9883033
1 changed files with 2 additions and 0 deletions
|
@ -966,6 +966,8 @@ class UsersHandler(CollectionHandler):
|
|||
del data['_id']
|
||||
if 'username' in data:
|
||||
del data['username']
|
||||
if 'tickets' in data:
|
||||
del data['tickets']
|
||||
if not self.has_permission('admin|all'):
|
||||
if 'permissions' in data:
|
||||
del data['permissions']
|
||||
|
|
Loading…
Reference in a new issue