Ignore:
Timestamp:
Oct 19, 2016, 2:18:53 PM (6 years ago)
Author:
Nicklas Nordborg
Message:

References #2034: New permission for annotating items

The "Edit annotation" icon in the "Annotations & parameters" tab should be enabled when the logged in user has RESTRICTED_WRITE permission.

The "Save" button in the "Edit annotations" dialog should be enabled if the logged in user has RESTRICTED_WRITE permission.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/common/annotations/list_annotations.jsp

    r7206 r7213  
    8787{
    8888  final Annotatable item = (Annotatable)itemType.getById(dc, itemId);
    89   final boolean writePermission = item.hasPermission(Permission.WRITE);
     89  final boolean writePermission = item.hasPermission(Permission.RESTRICTED_WRITE);
    9090  final SnapshotManager manager = new SnapshotManager();
    9191 
Note: See TracChangeset for help on using the changeset viewer.