Skip to content

Commit

Permalink
Bugfix: Accept, reject or request for changes in analysis only for re…
Browse files Browse the repository at this point in the history
…search environment
  • Loading branch information
djuarezgf committed Nov 14, 2024
1 parent 04df581 commit d5b6a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/de/samply/app/ProjectManagerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ public ResponseEntity<String> requestChangesInProject(

@RoleConstraints(projectRoles = {ProjectRole.DEVELOPER, ProjectRole.PILOT})
@StateConstraints(projectStates = {ProjectState.DEVELOP, ProjectState.PILOT})
@ProjectConstraints(projectTypes = {ProjectType.RESEARCH_ENVIRONMENT})
@EmailSender(templateType = EmailTemplateType.ANALYSIS_ACCEPTED, recipients = {EmailRecipientType.PROJECT_MANAGER_ADMIN, EmailRecipientType.ALL_DEVELOPERS, EmailRecipientType.ALL_PILOTS, EmailRecipientType.ALL_FINALS})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.PROJECT_STATE_MODULE)
@FrontendAction(action = ProjectManagerConst.ACCEPT_PROJECT_ANALYSIS_ACTION)
Expand All @@ -629,6 +630,7 @@ public ResponseEntity<String> acceptProjectAnalysis(

@RoleConstraints(projectRoles = {ProjectRole.DEVELOPER, ProjectRole.PILOT})
@StateConstraints(projectStates = {ProjectState.DEVELOP, ProjectState.PILOT})
@ProjectConstraints(projectTypes = {ProjectType.RESEARCH_ENVIRONMENT})
@EmailSender(templateType = EmailTemplateType.ANALYSIS_REJECTED, recipients = {EmailRecipientType.PROJECT_MANAGER_ADMIN, EmailRecipientType.ALL_DEVELOPERS, EmailRecipientType.ALL_PILOTS, EmailRecipientType.ALL_FINALS})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.PROJECT_STATE_MODULE)
@FrontendAction(action = ProjectManagerConst.REJECT_PROJECT_ANALYSIS_ACTION)
Expand All @@ -644,6 +646,7 @@ public ResponseEntity<String> rejectProjectAnalysis(

@RoleConstraints(projectRoles = {ProjectRole.DEVELOPER, ProjectRole.PILOT})
@StateConstraints(projectStates = {ProjectState.DEVELOP, ProjectState.PILOT})
@ProjectConstraints(projectTypes = {ProjectType.RESEARCH_ENVIRONMENT})
@EmailSender(templateType = EmailTemplateType.REQUEST_CHANGES_IN_PROJECT_ANALYSIS, recipients = {EmailRecipientType.PROJECT_MANAGER_ADMIN, EmailRecipientType.ALL_DEVELOPERS, EmailRecipientType.ALL_PILOTS, EmailRecipientType.ALL_FINALS})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.PROJECT_STATE_MODULE)
@FrontendAction(action = ProjectManagerConst.REQUEST_CHANGES_IN_PROJECT_ANALYSIS_ACTION)
Expand Down

0 comments on commit d5b6a5e

Please sign in to comment.