From c6334d2bcdba05b37a80d8f300672c2f0c0d4f70 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 27 Jun 2022 11:50:17 -0700 Subject: [PATCH] Allow super admin to delete any shared drive (#1533) --- src/GamCommands.txt | 2 +- src/gam/__init__.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GamCommands.txt b/src/GamCommands.txt index 05d34eec..f35415a2 100644 --- a/src/GamCommands.txt +++ b/src/GamCommands.txt @@ -1846,7 +1846,7 @@ gam update teamdrive |(name ) [asad [(theme|themeid ) | ([customtheme ] [color ])] ( )* [hidden ] -gam delete teamdrive |(name ) [allowitemdeletion|nukefromorbit] +gam delete teamdrive |(name ) [asadmin] [allowitemdeletion|nukefromorbit] gam show teamdriveinfo |(name ) [asadmin] gam show teamdrives [query ] [asadmin] gam print teamdrives [query ] [todrive] [asadmin] diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 1c187ce1..fc2b4c34 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -8243,6 +8243,9 @@ def doDeleteSharedDrive(users): allowItemDeletion = True useDomainAdminAccess = True i += 1 + elif myarg == 'asadmin': + useDomainAdminAccess = True + i += 1 else: controlflow.invalid_argument_exit( myarg, 'gam delete shareddrive')