Skip to content

Commit

Permalink
adjust child option optimization to avoid parents
Browse files Browse the repository at this point in the history
  • Loading branch information
mtbc committed Aug 25, 2015
1 parent 6e10b1c commit bebb09d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/blitz/src/omero/cmd/graphs/ChildOptionsPolicy.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,8 @@ private boolean isTargetNamespace(ChildOptionI childOption, IObject object) {

@Override
protected boolean isAdjustedBeforeReview(Details object) {
if (object.action == GraphPolicy.Action.EXCLUDE &&
object.orphan != GraphPolicy.Orphan.IS_LAST && object.orphan != GraphPolicy.Orphan.IS_NOT_LAST) {
/* the model object is [E]{ir} */
if (object.action == GraphPolicy.Action.EXCLUDE && object.orphan == GraphPolicy.Orphan.RELEVANT) {
/* the model object is [E]{r} */
for (final ChildOptionI childOption : childOptions) {
final Boolean isIncludeVerdict = childOption.isIncludeType(object.subject.getClass());
if (isIncludeVerdict == Boolean.TRUE && (requiredPermissions == null ||
Expand Down

0 comments on commit bebb09d

Please sign in to comment.