mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 06:33:34 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user