parent
69ca8d374d
commit
ed50daf199
2
pom.xml
2
pom.xml
|
@ -21,7 +21,7 @@
|
|||
|
||||
<groupId>org.gcube.resources</groupId>
|
||||
<artifactId>registry-publisher</artifactId>
|
||||
<version>1.3.0</version>
|
||||
<version>1.3.1-SNAPSHOT</version>
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
|
|
@ -86,11 +86,11 @@ public class ValidationUtils {
|
|||
}else if(new ScopeBean(scope).is(Type.VO)){
|
||||
log.debug(" "+scope+" is a VO scope");
|
||||
if(anotherSonVREOnResource(resource, scope)){
|
||||
throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope);
|
||||
return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same VO. The VO is "+scope);
|
||||
}else return true;
|
||||
}else{ // is a INFRA scope
|
||||
if(anotherInfraScopeOnResource(resource, scope)){
|
||||
throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope);
|
||||
return false; //throw new IllegalArgumentException("the resource "+resource.id()+" have another scope defined in the same INFRA. The INFRA is "+scope);
|
||||
}else return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue