mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 13:43:35 +00:00
In gam create admin, org unit id is id:abcdefghj not uid:abcdefhgi
This commit is contained in:
@ -1583,8 +1583,8 @@ def doCreateAdmin():
|
||||
sys.exit(3)
|
||||
if body[u'scopeType'] == u'ORG_UNIT':
|
||||
orgUnit = sys.argv[6]
|
||||
if orgUnit[:4] == u'uid:':
|
||||
body[u'orgUnitId'] = orgUnit[4:]
|
||||
if orgUnit[:3] == u'id:':
|
||||
body[u'orgUnitId'] = orgUnit[3:]
|
||||
else:
|
||||
if orgUnit[0] == u'/':
|
||||
orgUnit = orgUnit[1:]
|
||||
|
Reference in New Issue
Block a user