diff --git a/analytics-webapps/src/main/webapp/WEB-INF/jsp/spacesListWidget.jsp b/analytics-webapps/src/main/webapp/WEB-INF/jsp/spacesListWidget.jsp index c886155f9..37712cc04 100644 --- a/analytics-webapps/src/main/webapp/WEB-INF/jsp/spacesListWidget.jsp +++ b/analytics-webapps/src/main/webapp/WEB-INF/jsp/spacesListWidget.jsp @@ -1,3 +1,4 @@ +<%@page import="org.exoplatform.services.security.ConversationState"%> <% /** * This file is part of the Meeds project (https://meeds.io/). @@ -42,7 +43,7 @@ String spacesMostActivePeriod = request.getAttribute("spacesMostActivePeriod") == null ? "30" : ((String[]) request.getAttribute("spacesMostActivePeriod"))[0]; Page currentPage = PortalRequestContext.getCurrentInstance().getPage(); boolean canEdit = ExoContainerContext.getService(UserACL.class) - .hasEditPermission(currentPage); + .hasEditPermission(currentPage, ConversationState.getCurrent().getIdentity()); String pageRef = currentPage.getPageKey().format(); boolean canCreateSpace = ExoContainerContext.getService(SpacesAdministrationService.class) .canCreateSpace(request.getRemoteUser());