diff --git a/commons-component-product/src/main/java/org/exoplatform/commons/info/PlatformInformationRESTService.java b/commons-component-product/src/main/java/org/exoplatform/commons/info/PlatformInformationRESTService.java index fd818d269f..18a7eefeb7 100644 --- a/commons-component-product/src/main/java/org/exoplatform/commons/info/PlatformInformationRESTService.java +++ b/commons-component-product/src/main/java/org/exoplatform/commons/info/PlatformInformationRESTService.java @@ -30,6 +30,7 @@ import org.exoplatform.services.log.ExoLogger; import org.exoplatform.services.log.Log; import org.exoplatform.services.rest.resource.ResourceContainer; +import org.exoplatform.services.security.ConversationState; /** * @author Anouar @@ -72,7 +73,7 @@ public Response getPlatformInformation() { String plfProfile = ExoContainer.getProfiles().toString().trim(); String runningProfile = plfProfile.substring(1, plfProfile.length() - 1); JsonPlatformInfo jsonPlatformInfo = new JsonPlatformInfo(); - if (userACL.isUserInGroup(userACL.getAdminGroups())) { + if (userACL.isAdministrator(ConversationState.getCurrent().getIdentity())) { jsonPlatformInfo.setPlatformVersion(platformInformations.getVersion()); jsonPlatformInfo.setPlatformBuildNumber(platformInformations.getBuildNumber()); jsonPlatformInfo.setPlatformRevision(platformInformations.getRevision());