Skip to content

Commit

Permalink
Added: Fetch User Visible Projects and User Visible Notifications wit…
Browse files Browse the repository at this point in the history
…hout constraints
  • Loading branch information
djuarezgf committed Jan 30, 2024
1 parent 9458fa9 commit b7bd8fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Notification User Action
- Replace Bridgehead Operation through Notification
- Set notification as read
- Fetch User Visible Projects and User Visible Notifications without constraints
3 changes: 0 additions & 3 deletions src/main/java/de/samply/app/ProjectManagerController.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public ResponseEntity<String> fetchAllActions(
this.frontendService.fetchModuleActionPackage(site, Optional.ofNullable(projectCode), Optional.ofNullable(bridgehead), false));
}

@RoleConstraints(organisationRoles = {OrganisationRole.RESEARCHER, OrganisationRole.BRIDGEHEAD_ADMIN, OrganisationRole.PROJECT_MANAGER_ADMIN})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_DASHBOARD_SITE, module = ProjectManagerConst.PROJECTS_MODULE)
@FrontendAction(action = ProjectManagerConst.FETCH_PROJECTS_ACTION)
@GetMapping(value = ProjectManagerConst.FETCH_PROJECTS, produces = MediaType.APPLICATION_JSON_VALUE)
Expand Down Expand Up @@ -801,7 +800,6 @@ public ResponseEntity<String> fetchTokenScript(
return convertToResponseEntity(() -> this.tokenManagerService.fetchAuthenticationScript(projectCode, bridgehead));
}

@RoleConstraints(organisationRoles = {OrganisationRole.RESEARCHER, OrganisationRole.BRIDGEHEAD_ADMIN, OrganisationRole.PROJECT_MANAGER_ADMIN})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_DASHBOARD_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendAction(action = ProjectManagerConst.FETCH_NOTIFICATIONS_ACTION)
Expand All @@ -813,7 +811,6 @@ public ResponseEntity<String> fetchNotifications(
return convertToResponseEntity(() -> this.notificationService.fetchUserVisibleNotifications(Optional.ofNullable(projectCode), Optional.ofNullable(bridgehead)));
}

@RoleConstraints(organisationRoles = {OrganisationRole.RESEARCHER, OrganisationRole.BRIDGEHEAD_ADMIN, OrganisationRole.PROJECT_MANAGER_ADMIN})
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_VIEW_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendSiteModule(site = ProjectManagerConst.PROJECT_DASHBOARD_SITE, module = ProjectManagerConst.NOTIFICATIONS_MODULE)
@FrontendAction(action = ProjectManagerConst.SET_NOTIFICATION_AS_READ_ACTION)
Expand Down

0 comments on commit b7bd8fd

Please sign in to comment.