fix: set specific AssetUpload permission on checkBulkUpload endpoint (#21470)

* fix: set specific AssetUpload permission on checkBulkUpload endpoint

Fixes #21456

* fix: make open-api
This commit is contained in:
bo0tzz 2025-09-02 21:21:14 +02:00 committed by GitHub
parent ec2f94cae8
commit 28edf5664d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

Binary file not shown.

View File

@ -1855,7 +1855,7 @@
},
"/assets/bulk-upload-check": {
"post": {
"description": "Checks if assets exist by checksums",
"description": "Checks if assets exist by checksums. This endpoint requires the `asset.upload` permission.",
"operationId": "checkBulkUpload",
"parameters": [],
"requestBody": {
@ -1894,7 +1894,8 @@
"summary": "checkBulkUpload",
"tags": [
"Assets"
]
],
"x-immich-permission": "asset.upload"
}
},
"/assets/device/{deviceId}": {

View File

@ -188,7 +188,7 @@ export class AssetMediaController {
* Checks if assets exist by checksums
*/
@Post('bulk-upload-check')
@Authenticated()
@Authenticated({ permission: Permission.AssetUpload })
@ApiOperation({
summary: 'checkBulkUpload',
description: 'Checks if assets exist by checksums',