diff --git a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java index d9edbba..8aabaff 100644 --- a/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java +++ b/src/main/java/org/gcube/portlets/gcubeckan/gcubeckandatacatalog/server/GcubeCkanDataCatalogServiceImpl.java @@ -535,10 +535,11 @@ public class GcubeCkanDataCatalogServiceImpl extends RemoteServiceServlet implem } } + boolean toReturn = catalogue.isManageProductEnabled() & isGRSFAdminRoleSet; logger.debug("IsmanageProductEnabled equals to " + catalogue.isManageProductEnabled()); logger.debug("isGRSFAdminRoleSet equals to " + isGRSFAdminRoleSet); - - return catalogue.isManageProductEnabled() & isGRSFAdminRoleSet; + logger.info("Will manage product be enabled for this user? " + Boolean.toString(toReturn)); + return toReturn; }catch(Exception e){ logger.error("Unable to determine if the manage product needs to be shown or not", e); return false;