Changeset 7204


Ignore:
Timestamp:
Oct 19, 2016, 8:42:39 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

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

Fixed the annotation importer so that it only return annotation types that the logged in user has permission to USE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/core/net/sf/basedb/plugins/AnnotationFlatFileImporter.java

    r7203 r7204  
    11241124      ItemQuery<AnnotationType> query = AnnotationType.getQuery(context.getItem());
    11251125      query.include(Include.MINE, Include.SHARED, Include.IN_PROJECT, Include.OTHERS);
     1126      query.setItemPermission(Permission.USE);
    11261127      query.order(Orders.asc(Hql.property("name")));
    11271128      List<AnnotationType> annotationTypes;
Note: See TracChangeset for help on using the changeset viewer.