added debug line to check GRSF-Admin role status

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/gcube-ckan-datacatalog@141439 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-01-02 10:00:17 +00:00
parent 72dffe303b
commit 620e8670a6
1 changed files with 3 additions and 2 deletions

View File

@ -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;