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/bioassays/view_bioassay.jsp

    r6962 r7210  
    292292                        for (AnnotationSnapshot a : all)
    293293                        {
     294                          boolean annotatePermission = a.hasPermission(dc, Permission.WRITE);
    294295                          List values = a.getActualValues();
    295296                          boolean isUpToDate = a.isUpToDate();
     
    303304                            data-annotation-type="<%=at.getId() %>"
    304305                            data-annotation="<%=a.getThisAnnotationId()%>"
    305                             visible="<%=writePermission%>"
     306                            visible="<%=annotatePermission%>"
    306307                            image="<%=isUpToDate ? "edit.png" : "edit-outofsync.png"%>"
    307308                            tooltip="Modify the values of this experimental factor"
Note: See TracChangeset for help on using the changeset viewer.