Skip to content
Snippets Groups Projects

feat: two types for comments and adapted permission service

Merged Alicia.DeDiosFuente requested to merge adf-250-comments-for-validator-only into master
@@ -54,7 +54,7 @@ public class PublicationCommentController extends CompositionController<Publicat
}
@GetMapping(AouActionName.LIST_VALIDATOR_COMMENTS)
@PreAuthorize("@publicationPermissionService.isAllowed(#parentid, 'LIST_DEPOSIT_COMMENTS_AS_VALIDATOR')")
@PreAuthorize("@publicationPermissionService.isAllowed(#parentid, 'LIST_VALIDATOR_COMMENTS')")
public HttpEntity<Collection<Comment>> listValidatorComments(@PathVariable String parentid, @ModelAttribute Comment comment, Pageable pageable) {
comment.setOnlyForValidators(true);
return super.list(parentid, comment, pageable);
Loading