Browse Source
Bugfix/add missing permission guard in create watchlist item endpoint (#4686)
* Add missing permission guard
* Update changelog
pull/4689/head
Thomas Kaul
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
1 deletions
-
CHANGELOG.md
-
apps/api/src/app/endpoints/watchlist/watchlist.controller.ts
|
|
@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Improved the language localization for Italian (`it`) |
|
|
|
- Upgraded `nestjs` from version `10.4.15` to `11.0.12` |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
|
|
- Fixed an issue in the watchlist endpoint (`POST`) related to the `HasPermissionGuard` |
|
|
|
|
|
|
|
## 2.161.0 - 2025-05-06 |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
@ -39,7 +39,7 @@ export class WatchlistController { |
|
|
|
|
|
|
|
@Post() |
|
|
|
@HasPermission(permissions.createWatchlistItem) |
|
|
|
@UseGuards(AuthGuard('jwt')) |
|
|
|
@UseGuards(AuthGuard('jwt'), HasPermissionGuard) |
|
|
|
@UseInterceptors(TransformDataSourceInRequestInterceptor) |
|
|
|
public async createWatchlistItem(@Body() data: CreateWatchlistItemDto) { |
|
|
|
return this.watchlistService.createWatchlistItem({ |
|
|
|