mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-10 06:33:34 +00:00
Clean up group_inde (#1203)
This commit is contained in:
@ -12118,7 +12118,6 @@ def getUsersToModify(entity_type=None,
|
||||
checkSuspended=None,
|
||||
groupUserMembersOnly=True):
|
||||
got_uids = False
|
||||
includeDerivedMembership = False
|
||||
if entity_type is None:
|
||||
entity_type = sys.argv[1].lower()
|
||||
if entity is None:
|
||||
@ -12130,13 +12129,12 @@ def getUsersToModify(entity_type=None,
|
||||
]
|
||||
elif entity_type == 'users':
|
||||
users = entity.replace(',', ' ').split()
|
||||
elif entity_type in ['group', 'group_ns', 'group_susp','group_inde']:
|
||||
elif entity_type in ['group', 'group_ns', 'group_susp', 'group_inde']:
|
||||
if entity_type == 'group_ns':
|
||||
checkSuspended = False
|
||||
elif entity_type == 'group_susp':
|
||||
checkSuspended = True
|
||||
if entity_type == 'group_inde':
|
||||
includeDerivedMembership = True
|
||||
includeDerivedMembership = entity_type == 'group_inde'
|
||||
got_uids = True
|
||||
group = entity
|
||||
if member_type is None:
|
||||
|
@ -26,7 +26,7 @@ GAM_PROJECT_FILEPATH = 'https://raw.githubusercontent.com/jay0lee/GAM/master/src
|
||||
true_values = ['on', 'yes', 'enabled', 'true', '1']
|
||||
false_values = ['off', 'no', 'disabled', 'false', '0']
|
||||
usergroup_types = [
|
||||
'user', 'users', 'group', 'group_ns', 'grooup_susp', 'ou', 'org', 'ou_ns',
|
||||
'user', 'users', 'group', 'group_ns', 'group_susp', 'group_inde', 'ou', 'org', 'ou_ns',
|
||||
'org_ns', 'ou_susp', 'org_susp', 'ou_and_children', 'ou_and_child',
|
||||
'ou_and_children_ns', 'ou_and_child_ns', 'ou_and_children_susp',
|
||||
'ou_and_child_susp', 'query', 'queries', 'license', 'licenses', 'licence',
|
||||
|
Reference in New Issue
Block a user