mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-09 22:23:35 +00:00
reason not valid woth readonly false; add contentrestrions to file field list (#1263)
This commit is contained in:
@ -3538,7 +3538,11 @@ def getDriveFileAttribute(i, body, parameters, myarg, update=False):
|
||||
sys.argv[i+2], f'gam <users> {operation} drivefile')
|
||||
i += 3
|
||||
if len(sys.argv) > i and sys.argv[i].lower() == 'reason':
|
||||
body['contentRestrictions'][0]['reason'] = sys.argv[i+1]
|
||||
if body['contentRestrictions'][0]['readOnly']:
|
||||
body['contentRestrictions'][0]['reason'] = sys.argv[i+1]
|
||||
else:
|
||||
controlflow.invalid_argument_exit(
|
||||
'reason', 'contentrestrictions readonly false')
|
||||
i += 2
|
||||
else:
|
||||
controlflow.invalid_argument_exit(
|
||||
|
Reference in New Issue
Block a user