Skip to content

Commit 5b72353

Browse files
committed
Added security to the detection result API
1 parent 554131d commit 5b72353

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
- [#88](https://github.com/itk-dev/devops_itksites/pull/88)
1111
- Let users use the API
12+
- Add security to detection results API endpoint
1213
- [#80](https://github.com/itk-dev/devops_itksites/pull/80) 5566: Service agreements
1314
- Add security contract entity with crud controller
1415
- Add Abstract full crud controller and extend on it in some cases

src/Entity/DetectionResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#[ApiResource(
1818
operations: [
1919
new Post(
20+
security: "is_granted('ROLE_SERVER')",
2021
status: 202,
2122
output: false,
2223
messenger: true,

0 commit comments

Comments
 (0)