Skip to content
Snippets Groups Projects

feat: [AOU-1125] error message when reach limit of contributor during import

Files
7
@@ -84,7 +84,7 @@ public class CommentService extends AouResourceService<Comment> {
/**
* Check that if it is marked as onlyForValidators, that the person linked is validator
*/
if (comment.isOnlyForValidators() && !this.authenticatedUserHasPriviledgedRole()) {
if (!comment.isByPassValidationRule() && comment.isOnlyForValidators() && !this.authenticatedUserHasPriviledgedRole()) {
// reload publication to ensure its structures are filled
Publication publication = this.publicationService.findOne(comment.getPublicationId());
if (!this.personService.isAllowedToValidate(comment.getCreatorId(), publication)) {
Loading