Allow adding customer Id to group (#889)

Customer ID is properly recognized in normalizeEmailAddressOrUID if CUSTOMER_ID envirement variable is set. This change then properly labels it ads'id', not 'email'.
This commit is contained in:
Ross Scroggs
2019-04-15 13:52:43 -07:00
committed by Jay Lee
parent b095b361cb
commit 2316b9e76a

View File

@ -8873,7 +8873,7 @@ def doUpdateGroup():
item.append(user_email)
items.append(item)
else:
body = {u'role': role, u'email': users_email[0]}
body = {u'role': role, u'email' if users_email[0].find(u'@') != -1 else u'id': users_email[0]}
add_text = [u'as %s' % role]
if delivery:
body[u'delivery_settings'] = delivery