Merged PR 481: 音声ファイルアップロードできる権限制御を外す
## 概要 [Task2764: 音声ファイルアップロードできる権限制御を外す](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/2764) - Authorでなくとも音声ファイルのアップロードやタスク追加をするケースがあるとのことだったので対応しました。 - アップロード要求APIと音声ファイルアップロード完了APIのRoleGuardを外しました ## レビューポイント - ほか気になるケースあれば(この挙動はできるようにしなくて大丈夫?とか) ## 動作確認状況 - ローカルでツールを使ってアップロードでき、タスク追加できるところまで確認
This commit is contained in:
parent
d48afdbffd
commit
be475c29a6
@ -70,7 +70,6 @@ export class FilesController {
|
||||
})
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(AuthGuard)
|
||||
@UseGuards(RoleGuard.requireds({ roles: [USER_ROLES.AUTHOR] }))
|
||||
@Post('audio/upload-finished')
|
||||
async uploadFinished(
|
||||
@Req() req: Request,
|
||||
@ -143,7 +142,6 @@ export class FilesController {
|
||||
})
|
||||
@ApiBearerAuth()
|
||||
@UseGuards(AuthGuard)
|
||||
@UseGuards(RoleGuard.requireds({ roles: [USER_ROLES.AUTHOR] }))
|
||||
async uploadLocation(
|
||||
@Req() req: Request,
|
||||
// クエリパラメータ AudioUploadLocationRequest は空であるため内部で使用しない。
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user