From b7bd8fd6198816235577ef38f266143dab2b0592 Mon Sep 17 00:00:00 2001 From: juarez Date: Tue, 30 Jan 2024 15:29:23 +0100 Subject: [PATCH] Added: Fetch User Visible Projects and User Visible Notifications without constraints --- CHANGELOG.md | 1 + src/main/java/de/samply/app/ProjectManagerController.java | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c96aa5a..b010192 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/main/java/de/samply/app/ProjectManagerController.java b/src/main/java/de/samply/app/ProjectManagerController.java index f0bc569..6562e38 100644 --- a/src/main/java/de/samply/app/ProjectManagerController.java +++ b/src/main/java/de/samply/app/ProjectManagerController.java @@ -118,7 +118,6 @@ public ResponseEntity 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) @@ -801,7 +800,6 @@ public ResponseEntity 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) @@ -813,7 +811,6 @@ public ResponseEntity 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)