339
334
'password', 'nick', 'email', 'rolenm', 'unixid', 'fullname',
342
339
def handle_update_user(req, fields):
343
340
"""Update a user's account details.
344
341
This can be done in a limited form by any user, on their own account,
345
342
or with full powers by a user with CAP_UPDATEUSER on any account.
351
344
# Only give full powers if this user has CAP_UPDATEUSER
352
345
fullpowers = req.user.hasCap(caps.CAP_UPDATEUSER)
353
346
# List of fields that may be changed