AuthorizationControl integration. Use of "allowed Users"

This commit is contained in:
Fabio Sinibaldi 2020-02-10 12:40:44 +01:00
parent b25ba86d53
commit 74bbd12c81
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ public class Mappings {
@GET
@Path(ServiceConstants.Mappings.BATCHES_METHOD)
@Produces(MediaType.APPLICATION_JSON)
@AuthorizationControl(allowed={ServiceConstants.Mappings.AUTH}, exception=MyAuthException.class)
@AuthorizationControl(allowedUsers={ServiceConstants.Mappings.AUTH}, exception=MyAuthException.class)
public Batch getBatch(@QueryParam(ServiceConstants.Mappings.BATCH_NAME_PARAMETER) String name,
@QueryParam(ServiceConstants.Mappings.BATCH_TYPE_PARAMETER) String type,
@QueryParam(ServiceConstants.Mappings.FARM_ID_PARAMETER) Long farmid) {