Skip to content

Commit

Permalink
correct codomain map join in another security filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mtbc committed Apr 13, 2017
1 parent 2dbcdc4 commit 6affdce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/dsl/resources/ome/dsl/object.vm
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ import ome.model.*;
"channelbinding.renderingdef = renderingdef.id AND renderingdef.pixels = pixels.id AND pixels.image IN (:images)))")
#elseif($type.id.equals("ome.model.display.CodomainMapContext"))
@org.hibernate.annotations.Filter(name="SharingSecurityFilter", condition="(:is_admin = 1 OR :is_share = 0 OR " +
"id IN (SELECT codomainmapcontext.id FROM codomainmapcontext*, renderingdef*, pixels* WHERE " +
"codomainmapcontext.renderingdef = renderingdef.id AND renderingdef.pixels = pixels.id AND pixels.image IN (:images)))")
"id IN (SELECT codomainmapcontext.id FROM channelbinding*, codomainmapcontext*, renderingdef*, pixels* WHERE " +
"codomainmapcontext.channelbinding = channelbinding.id AND channelbinding.renderingdef = renderingdef.id AND " +
"renderingdef.pixels = pixels.id AND pixels.image IN (:images)))")
#elseif($type.id.equals("ome.model.display.ProjectionDef"))
@org.hibernate.annotations.Filter(name="SharingSecurityFilter", condition="(:is_admin = 1 OR :is_share = 0 OR " +
"id IN (SELECT projectiondef.id FROM projectiondef*, renderingdef*, pixels* WHERE " +
Expand Down

0 comments on commit 6affdce

Please sign in to comment.