Commit a615d272 authored by Francesco Chicchiricco's avatar Francesco Chicchiricco
Browse files

[CRV-280] Adding proper entilement for choreography read

parent a6cbf805
......@@ -25,6 +25,8 @@ public final class ChorevolutionEntitlement {
public static final String CHOREOGRAPHY_LIST = "CHOREOGRAPHY_LIST";
public static final String CHOREOGRAPHY_READ = "CHOREOGRAPHY_READ";
public static final String CHOREOGRAPHY_CREATE = "CHOREOGRAPHY_CREATE";
public static final String CHOREOGRAPHY_UPDATE = "CHOREOGRAPHY_UPDATE";
......
......@@ -267,7 +267,7 @@ public class ChoreographyLogic extends AbstractLogic<AbstractBaseBean> {
return enactmentEngine;
}
@PreAuthorize("hasRole('" + ChorevolutionEntitlement.CHOREOGRAPHY_LIST + "')")
@PreAuthorize("hasRole('" + ChorevolutionEntitlement.CHOREOGRAPHY_READ + "')")
public ChoreographyTO getChoreography(final String choreographyKey) {
GroupTO choreography = groupLogic.read(choreographyKey);
if (choreography == null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment