From 5a1ba6145f8e4a21c9fa4122266f6386c38a41d5 Mon Sep 17 00:00:00 2001 From: Nikesh kumar Date: Fri, 11 Aug 2023 10:22:52 +0530 Subject: [PATCH] fix(UI): Added code to load moderation documents in request tab Signed-off-by: Nikesh kumar --- .../sw360/portal/portlets/moderation/ModerationPortlet.java | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/sw360-portlet/src/main/java/org/eclipse/sw360/portal/portlets/moderation/ModerationPortlet.java b/frontend/sw360-portlet/src/main/java/org/eclipse/sw360/portal/portlets/moderation/ModerationPortlet.java index 78715000bd..de0ee59530 100644 --- a/frontend/sw360-portlet/src/main/java/org/eclipse/sw360/portal/portlets/moderation/ModerationPortlet.java +++ b/frontend/sw360-portlet/src/main/java/org/eclipse/sw360/portal/portlets/moderation/ModerationPortlet.java @@ -965,6 +965,7 @@ public void renderProjectModeration(RenderRequest request, RenderResponse respon request.setAttribute(PortalConstants.ACTUAL_PROJECT, actual_project); request.setAttribute(PortalConstants.DEFAULT_LICENSE_INFO_HEADER_TEXT, getDefaultLicenseInfoHeaderText(actual_project.getBusinessUnit())); request.setAttribute(IS_CLEARING_REQUEST_DISABLED_FOR_PROJECT_BU, true); + request.setAttribute(PortalConstants.IS_SBOM_IMPORT_EXPORT_ACCESS_USER, SW360Utils.isUserAtleastDesiredRoleInPrimaryOrSecondaryGroup(user, SW360Constants.SBOM_IMPORT_EXPORT_ACCESS_USER_ROLE)); } catch (TException e) { log.error("Could not retrieve project", e); }