mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-08 05:33:34 +00:00
Ok, allow gam create admin to take uid: or id:abcdefghi for org unit
This commit is contained in:
@ -1585,6 +1585,8 @@ def doCreateAdmin():
|
||||
orgUnit = sys.argv[6]
|
||||
if orgUnit[:3] == u'id:':
|
||||
body[u'orgUnitId'] = orgUnit[3:]
|
||||
elif orgUnit[:4] == u'uid:':
|
||||
body[u'orgUnitId'] = orgUnit[4:]
|
||||
else:
|
||||
if orgUnit[0] == u'/':
|
||||
orgUnit = orgUnit[1:]
|
||||
|
Reference in New Issue
Block a user