mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
Use update instead of patch for update user (#480)
This is required in order for update user phones/orgamizations/addresses/... clear to work
This commit is contained in:
@@ -7048,7 +7048,7 @@ def doUpdateUser(users, i):
|
|||||||
body[u'emails'] = [{u'type': u'custom', u'customType': u'former_employee', u'primary': False, u'address': user_primary}]
|
body[u'emails'] = [{u'type': u'custom', u'customType': u'former_employee', u'primary': False, u'address': user_primary}]
|
||||||
sys.stdout.write(u'updating user %s...\n' % user)
|
sys.stdout.write(u'updating user %s...\n' % user)
|
||||||
if body:
|
if body:
|
||||||
callGAPI(cd.users(), u'patch', userKey=user, body=body)
|
callGAPI(cd.users(), u'update', userKey=user, body=body)
|
||||||
if admin_body:
|
if admin_body:
|
||||||
callGAPI(cd.users(), u'makeAdmin', userKey=user, body=admin_body)
|
callGAPI(cd.users(), u'makeAdmin', userKey=user, body=admin_body)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user