mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 14:13: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)
|
sys.exit(3)
|
||||||
if body[u'scopeType'] == u'ORG_UNIT':
|
if body[u'scopeType'] == u'ORG_UNIT':
|
||||||
orgUnit = sys.argv[6]
|
orgUnit = sys.argv[6]
|
||||||
if orgUnit[:4] == u'uid:':
|
if orgUnit[:3] == u'id:':
|
||||||
body[u'orgUnitId'] = orgUnit[4:]
|
body[u'orgUnitId'] = orgUnit[3:]
|
||||||
else:
|
else:
|
||||||
if orgUnit[0] == u'/':
|
if orgUnit[0] == u'/':
|
||||||
orgUnit = orgUnit[1:]
|
orgUnit = orgUnit[1:]
|
||||||
|
Reference in New Issue
Block a user