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/AnnotatorAnnotationsByResources.java

    r91 r105  
    3939
    4040import de.mpiwg.itgroup.annotations.Annotation;
     41import de.mpiwg.itgroup.annotations.Annotation.Action;
    4142import de.mpiwg.itgroup.annotations.Person;
    4243import de.mpiwg.itgroup.annotations.neo4j.AnnotationStore;
     
    9091        for (Annotation annot : annotations) {
    9192            // check permission
    92             if (!annot.isActionAllowed("read", authUser, store))
     93            if (!annot.isActionAllowed(Action.read, authUser, store))
    9394                continue;
    9495
Note: See TracChangeset for help on using the changeset viewer.