Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmisinco2012-03-01 20:04:13 +0000
committerRyan D. Brooks2012-03-01 20:04:13 +0000
commit6f3a3416af44f4c71bada636ed03804d7a12959a (patch)
tree1c0daf1253a79724d7bcb5c05598bc5202171b5a /plugins/org.eclipse.osee.framework.core.dsl.integration
parent28111fd59bb80d3a0b6a767ef9443bce8a70368d (diff)
downloadorg.eclipse.osee-6f3a3416af44f4c71bada636ed03804d7a12959a.tar.gz
org.eclipse.osee-6f3a3416af44f4c71bada636ed03804d7a12959a.tar.xz
org.eclipse.osee-6f3a3416af44f4c71bada636ed03804d7a12959a.zip
bug[ats_NX9CW]: Access control not respecting defined rules
Diffstat (limited to 'plugins/org.eclipse.osee.framework.core.dsl.integration')
-rw-r--r--plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java
index 2fc05032e20..9528f8e5474 100644
--- a/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java
+++ b/plugins/org.eclipse.osee.framework.core.dsl.integration/src/org/eclipse/osee/framework/core/dsl/integration/internal/RelationTypeRestrictionHandler.java
@@ -21,7 +21,6 @@ import org.eclipse.osee.framework.core.dsl.integration.util.OseeUtil;
import org.eclipse.osee.framework.core.dsl.oseeDsl.ObjectRestriction;
import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeArtifactPredicate;
import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeArtifactTypePredicate;
-import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeMatch;
import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypePredicate;
import org.eclipse.osee.framework.core.dsl.oseeDsl.RelationTypeRestriction;
import org.eclipse.osee.framework.core.dsl.oseeDsl.XArtifactMatcher;
@@ -107,7 +106,7 @@ public class RelationTypeRestrictionHandler implements RestrictionHandler<Relati
private Collection<RelationType> getRelationTypes(ArtifactProxy artifactProxy, RelationTypeRestriction restriction) throws OseeCoreException {
Collection<RelationType> types;
- if (RelationTypeMatch.ALL == restriction.getRelationTypeMatch()) {
+ if (restriction.eIsSet(restriction.eClass().getEStructuralFeature("relationTypeMatch"))) {
types = artifactProxy.getValidRelationTypes();
} else {
XRelationType xRelationType = restriction.getRelationTypeRef();

Back to the top