Ignore:
Timestamp:
Feb 10, 2017, 2:45:35 PM (7 years ago)
Author:
casties
Branch:
default
Tags:
tip
Message:

check admin permission before changing permissions.
Enum for typesafe actions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/restlet/AnnotatorAnnotationsByTags.java

    r91 r105  
    3838
    3939import de.mpiwg.itgroup.annotations.Annotation;
     40import de.mpiwg.itgroup.annotations.Annotation.Action;
    4041import de.mpiwg.itgroup.annotations.Person;
    4142import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore;
     
    7980        for (Annotation annot : annotations) {
    8081            // check permission
    81             if (!annot.isActionAllowed("read", authUser, store))
     82            if (!annot.isActionAllowed(Action.read, authUser, store))
    8283                continue;
    8384
Note: See TracChangeset for help on using the changeset viewer.