avoid saving unnecesary data into users collection

This commit is contained in:
Davide Alberani 2017-04-28 23:48:27 +02:00
parent e48a29c0a6
commit b7c9883033

View file

@ -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']