start of turn restriction editor
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / RelationMemberEditor.as
index f002cc20d0e7302f3125c0f12a67ec1a73505f12..92ce619a84695db9f56f54c98397482ef6579a6a 100644 (file)
@@ -34,6 +34,8 @@ package net.systemeD.potlatch2.mapfeatures.editors {
                   if ( relVal != relationTags[k] )
                       addable = false;
               }
+              if (_factory.role && !relation.hasMemberInRole(_entity,_factory.role) ) { addable=false; }
+
               if (addable) {
                   for each( var memberIndex:int in relation.findEntityMemberIndexes(_entity)) {
                       var props:Object = {};