Ignore:
Timestamp:
Oct 19, 2016, 12:51:44 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #2033: Permissions for annotating items may be incorrectly implemented

Changes in the web interface (Experimental factors in various places) so that the "edit" icon is only visible if the user has permission to modify an annotation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/experiments/rootrawbioassays/view_bioassay.jsp

    r6962 r7210  
    279279                  for (AnnotationSnapshot a : all)
    280280                  {
     281                    boolean annotatePermission = a.hasPermission(dc, Permission.WRITE);
    281282                    Unit unit = a.getActualUnit(dc);
    282283                    UnitConverter converter = null;
     
    332333                          data-annotation-type-id="<%=at.getId()%>"
    333334                          data-annotation-id="<%=a.getThisAnnotationId()%>"
    334                           tooltip="Edit this annotation" visible="<%=writePermission %>"/>
     335                          tooltip="Edit this annotation"
     336                          visible="<%=annotatePermission %>"/>
    335337                      </tbl:cell>
    336338                      <tbl:cell column="item">
Note: See TracChangeset for help on using the changeset viewer.