Restored commented code

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-publishing/gcat@174536 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2018-12-04 13:33:50 +00:00
parent 69e26c0972
commit 50106016bc
1 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,7 @@ import org.gcube.common.scope.impl.ScopeBean;
import org.gcube.common.scope.impl.ScopeBean.Type;
import org.gcube.gcat.annotation.PURGE;
import org.gcube.gcat.oldutils.Validator;
import org.gcube.gcat.rest.Profile;
import org.gcube.gcat.social.SocialService;
import org.gcube.gcat.utils.ContextUtility;
import org.gcube.gcat.utils.URIResolver;
@ -154,8 +155,7 @@ public class CKANPackage extends CKAN {
ObjectNode objectNode = checkBaseInformation(json);
// Validating against profiles if any
// List<String> profiles = Profile.getProfilesNames(); TODO RESTORE THIS LINE
List<String> profiles = null; // TODO REMOVE THIS LINE
List<String> profiles = Profile.getProfilesNames();
if(profiles != null && !profiles.isEmpty()) {
Validator.validateAgainstProfile(getAsString(objectNode), profiles);
}