rsanchez
2017-04-17 8a45ae67ed7371a9d28cbba6de188af3270562b6
securis/src/main/java/net/curisit/securis/services/UserResource.java
....@@ -76,7 +76,7 @@
7676 @GET
7777 @Path("/")
7878 @Produces({ MediaType.APPLICATION_JSON })
79
- @Securable
79
+ @Securable(roles = Rol.ADMIN)
8080 @RolesAllowed(BasicSecurityContext.ROL_ADMIN)
8181 public Response index() {
8282 LOG.info("Getting users list ");
....@@ -97,7 +97,7 @@
9797 @GET
9898 @Path("/{uid}")
9999 @Produces({ MediaType.APPLICATION_JSON })
100
- @Securable
100
+ @Securable(roles = Rol.ADMIN)
101101 @RolesAllowed(BasicSecurityContext.ROL_ADMIN)
102102 public Response get(@PathParam("uid") String uid, @HeaderParam(TokenHelper.TOKEN_HEADER_PĂ€RAM) String token) {
103103 LOG.info("Getting user data for id: {}: ", uid);