mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
Fix create alias target where target is a group
This commit is contained in:
@@ -5566,7 +5566,7 @@ def doCreateAlias():
|
||||
callGAPI(service=cd.groups().aliases(), function=u'insert', groupKey=targetKey, body=body)
|
||||
elif target_type == u'target':
|
||||
try:
|
||||
callGAPI(service=cd.users().aliases(), function=u'insert', throw_reasons=[u'invalid'], userKey=targetKey, body=body)
|
||||
callGAPI(service=cd.users().aliases(), function=u'insert', throw_reasons=[u'invalid', u'badRequest'], userKey=targetKey, body=body)
|
||||
except googleapiclient.errors.HttpError:
|
||||
callGAPI(service=cd.groups().aliases(), function=u'insert', groupKey=targetKey, body=body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user