Skip to content

Commit

Permalink
[CST-12791] change the permission check of byTarget
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed eskander committed Jan 25, 2024
1 parent 3b78296 commit 77421f6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Page<QATopicRest> findBySource(@Parameter(value = "source", required = tr
}

@SearchRestMethod(name = "byTarget")
@PreAuthorize("hasPermission(#target, 'QUALITYASSURANCETOPIC', 'READ')")
@PreAuthorize("hasPermission(#target, 'ITEM', 'READ')")
public Page<QATopicRest> findByTarget(@Parameter(value = "target", required = true) UUID target,
@Parameter(value = "source", required = true) String source,
Pageable pageable) {
Expand Down

0 comments on commit 77421f6

Please sign in to comment.