diff --git a/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java b/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java index da3a24ef2..e0fb45be1 100644 --- a/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java +++ b/dmp-backend/core/src/main/java/eu/eudat/service/descriptiontemplate/DescriptionTemplateServiceImpl.java @@ -244,8 +244,10 @@ public class DescriptionTemplateServiceImpl implements DescriptionTemplateServic data.setUserId(user.getUserId()); data.setRole(user.getRole()); this.entityManager.persist(data); - this.sendDescriptionTemplateInvitationEvent(data, NotificationContactType.EMAIL); - this.sendDescriptionTemplateInvitationEvent(data, NotificationContactType.IN_APP); + if (!this.userScope.getUserId().equals(user.getUserId())) { + this.sendDescriptionTemplateInvitationEvent(data, NotificationContactType.EMAIL); + this.sendDescriptionTemplateInvitationEvent(data, NotificationContactType.IN_APP); + } } updatedCreatedIds.add(data.getUserId()); }