mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 12:51:36 +00:00
Four changes (#1471)
* Three changes Document: gam <UserTypeEntity> show vaultholds|holds hidden <Boolean> for update teamsrive Fix showHoldsForUsers * Standardize update teamdrive input of orgUnitId * One too many =
This commit is contained in:
@@ -1572,6 +1572,7 @@ gam update vaulthold|hold <HoldItem> matter <MatterItem> [query <QueryVaultCorpu
|
|||||||
gam delete vaulthold|hold <HoldItem> matter <MatterItem>
|
gam delete vaulthold|hold <HoldItem> matter <MatterItem>
|
||||||
gam info vaulthold|hold <HoldItem> matter <MatterItem>
|
gam info vaulthold|hold <HoldItem> matter <MatterItem>
|
||||||
gam print vaultholds|holds [todrive] [matters <MatterItemList>]
|
gam print vaultholds|holds [todrive] [matters <MatterItemList>]
|
||||||
|
gam <UserTypeEntity> show vaultholds|holds
|
||||||
|
|
||||||
gam create vaultmatter|matter [name <String>] [description <string>]
|
gam create vaultmatter|matter [name <String>] [description <string>]
|
||||||
[collaborator|collaborators <CollaboratorItemList>]
|
[collaborator|collaborators <CollaboratorItemList>]
|
||||||
@@ -1762,6 +1763,7 @@ gam <UserTypeEntity> create|add teamdrive <Name>
|
|||||||
gam <UserTypeEntity> update teamdrive <TeamDriveID> [asadmin] [name <Name>]
|
gam <UserTypeEntity> update teamdrive <TeamDriveID> [asadmin] [name <Name>]
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<TeamDriveRestrictionsSubfieldName> <Boolean>)*
|
(<TeamDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
|
[hidden <Boolean>]
|
||||||
gam <UserTypeEntity> delete teamdrive <TeamDriveID>
|
gam <UserTypeEntity> delete teamdrive <TeamDriveID>
|
||||||
gam <UserTypeEntity> show teamdriveinfo <TeamDriveID> [asadmin]
|
gam <UserTypeEntity> show teamdriveinfo <TeamDriveID> [asadmin]
|
||||||
gam <UserTypeEntity> show teamdrives [query <QueryTeamDrive>] [asadmin]
|
gam <UserTypeEntity> show teamdrives [query <QueryTeamDrive>] [asadmin]
|
||||||
|
|||||||
@@ -8220,8 +8220,8 @@ def doUpdateTeamDrive(users):
|
|||||||
elif myarg == 'asadmin':
|
elif myarg == 'asadmin':
|
||||||
useDomainAdminAccess = True
|
useDomainAdminAccess = True
|
||||||
i += 1
|
i += 1
|
||||||
elif myarg in ['ou', 'orgunit']:
|
elif myarg in ['ou', 'org', 'orgunit']:
|
||||||
body['orgUnitId'] = sys.argv[i+1]
|
body['orgUnitId'] = gapi_directory_orgunits.getOrgUnitId(sys.argv[i + 1])
|
||||||
i += 2
|
i += 2
|
||||||
elif myarg in ['hidden']:
|
elif myarg in ['hidden']:
|
||||||
if getBoolean(sys.argv[i+1], myarg):
|
if getBoolean(sys.argv[i+1], myarg):
|
||||||
|
|||||||
@@ -685,8 +685,9 @@ def showHoldsForUsers(users):
|
|||||||
print(f'FOUND: User\'s OrgUnit is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
|
print(f'FOUND: User\'s OrgUnit is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
|
||||||
else:
|
else:
|
||||||
for account in hold.get('accounts', []):
|
for account in hold.get('accounts', []):
|
||||||
if user in account.get('email', '').lower():
|
if user == account.get('email', '').lower():
|
||||||
print(f'FOUND: User account is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
|
print(f'FOUND: User account is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
|
||||||
|
break
|
||||||
|
|
||||||
|
|
||||||
def updateMatter(action=None):
|
def updateMatter(action=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user