Changeset 3095


Ignore:
Timestamp:
Feb 5, 2007, 10:58:59 AM (15 years ago)
Author:
Martin Svensson
Message:

Fixed so the list page of plate mappings not are corrupt when user doesn't have read permission on
plate geometry.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/lims/platemappings/list_mappings.jsp

    r2978 r3095  
    221221      Enumeration<String, String> geometries = new Enumeration<String, String>();
    222222      ItemResultList<PlateGeometry> plateGeometries = geometryQuery.list(dc);
    223       for (PlateGeometry pg : plateGeometries)
    224       {
    225         geometries.add(Integer.toString(pg.getId()), HTML.encodeTags(pg.getName()));
     223      if (sc.hasPermission(Permission.READ, Item.PLATEGEOMETRY))
     224      {
     225        for (PlateGeometry pg : plateGeometries)
     226        {
     227          geometries.add(Integer.toString(pg.getId()), HTML.encodeTags(pg.getName()));
     228        }
    226229      }
    227230      %>
Note: See TracChangeset for help on using the changeset viewer.