Limit modifying reference files to admins
This commit is contained in:
parent
76b09a418e
commit
bc65f1c64a
|
@ -1036,6 +1036,8 @@ paths:
|
||||||
$ref: "#/components/schemas/File"
|
$ref: "#/components/schemas/File"
|
||||||
post:
|
post:
|
||||||
operationId: crc.api.reference_file.add_reference_file
|
operationId: crc.api.reference_file.add_reference_file
|
||||||
|
security:
|
||||||
|
- auth_admin: [ 'secret' ]
|
||||||
summary: Add a new reference file.
|
summary: Add a new reference file.
|
||||||
tags:
|
tags:
|
||||||
- Files
|
- Files
|
||||||
|
@ -1079,6 +1081,8 @@ paths:
|
||||||
example: '<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions></bpmn:definitions>'
|
example: '<?xml version="1.0" encoding="UTF-8"?><bpmn:definitions></bpmn:definitions>'
|
||||||
put:
|
put:
|
||||||
operationId: crc.api.reference_file.update_reference_file_info
|
operationId: crc.api.reference_file.update_reference_file_info
|
||||||
|
security:
|
||||||
|
- auth_admin: ['secret']
|
||||||
summary: Update the file_info of a named reference file.
|
summary: Update the file_info of a named reference file.
|
||||||
tags:
|
tags:
|
||||||
- Files
|
- Files
|
||||||
|
@ -1125,6 +1129,8 @@ paths:
|
||||||
format: binary
|
format: binary
|
||||||
put:
|
put:
|
||||||
operationId: crc.api.reference_file.update_reference_file_data
|
operationId: crc.api.reference_file.update_reference_file_data
|
||||||
|
security:
|
||||||
|
- auth_admin: ['secret']
|
||||||
summary: Update the contents of a reference file
|
summary: Update the contents of a reference file
|
||||||
tags:
|
tags:
|
||||||
- Files
|
- Files
|
||||||
|
|
Loading…
Reference in New Issue