Skip to content

Commit

Permalink
dashboard assignments panel
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Jul 17, 2017
1 parent e2facdf commit 9116b18
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -24,6 +24,7 @@
import com.evolveum.midpoint.prism.path.ItemPath;
import com.evolveum.midpoint.schema.util.AdminGuiConfigTypeUtil;
import com.evolveum.midpoint.web.application.Url;
import com.evolveum.midpoint.web.component.assignment.RelationTypes;
import com.evolveum.midpoint.xml.ns._public.common.common_3.*;
import org.apache.commons.lang.Validate;
import org.apache.wicket.Application;
Expand Down Expand Up @@ -577,6 +578,10 @@ private AssignmentItemDto createAssignmentItem(PrismObject<UserType> user,
return new AssignmentItemDto(AssignmentEditorDtoType.CONSTRUCTION, name, description, null);
}

if (RelationTypes.APPROVER.getRelation().equals(assignment.getValue().getTargetRef().getRelation()) ||
RelationTypes.OWNER.getRelation().equals(assignment.getValue().getTargetRef().getRelation())){
return null;
}
PrismReferenceValue refValue = targetRef.getValue();
PrismObject value = refValue.getObject();
if (value == null) {
Expand Down

0 comments on commit 9116b18

Please sign in to comment.