Skip to content

Commit

Permalink
Temporary fix for broken "New role" page. See MID-4146.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Sep 15, 2017
1 parent e9ad4ca commit dc51682
Showing 1 changed file with 13 additions and 1 deletion.
Expand Up @@ -16,6 +16,8 @@

package com.evolveum.midpoint.web.component.prism;

import com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractPolicyConstraintType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.AbstractRoleType;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.markup.html.form.Form;
Expand All @@ -33,6 +35,8 @@
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour;
import com.evolveum.midpoint.xml.ns._public.common.common_3.ShadowType;

import javax.xml.namespace.QName;

/**
* @author lazyman
* @author semancik
Expand Down Expand Up @@ -64,9 +68,17 @@ public boolean isVisible() {
}

// HACK HACK HACK
if (ShadowType.F_ASSOCIATION.equals(prismContainer.getElementName())) {
QName elementName = prismContainer.getElementName();
if (ShadowType.F_ASSOCIATION.equals(elementName)) {
return true;
}
// TODO FIX THIS IMMEDIATELY (see MID-4146)
if (AbstractRoleType.F_POLICY_CONSTRAINTS.equals(elementName)) {
return false;
}
if (AbstractPolicyConstraintType.F_PRESENTATION.equals(elementName)) {
return false;
}

boolean isVisible = false;
for (ItemWrapper item : containerWrapper.getItems()) {
Expand Down

0 comments on commit dc51682

Please sign in to comment.