| .. | .. |
|---|
| 76 | 76 | @GET |
|---|
| 77 | 77 | @Path("/") |
|---|
| 78 | 78 | @Produces({ MediaType.APPLICATION_JSON }) |
|---|
| 79 | | - @Securable |
|---|
| 79 | + @Securable(roles = Rol.ADMIN) |
|---|
| 80 | 80 | @RolesAllowed(BasicSecurityContext.ROL_ADMIN) |
|---|
| 81 | 81 | public Response index() { |
|---|
| 82 | 82 | LOG.info("Getting users list "); |
|---|
| .. | .. |
|---|
| 97 | 97 | @GET |
|---|
| 98 | 98 | @Path("/{uid}") |
|---|
| 99 | 99 | @Produces({ MediaType.APPLICATION_JSON }) |
|---|
| 100 | | - @Securable |
|---|
| 100 | + @Securable(roles = Rol.ADMIN) |
|---|
| 101 | 101 | @RolesAllowed(BasicSecurityContext.ROL_ADMIN) |
|---|
| 102 | 102 | public Response get(@PathParam("uid") String uid, @HeaderParam(TokenHelper.TOKEN_HEADER_PĂ€RAM) String token) { |
|---|
| 103 | 103 | LOG.info("Getting user data for id: {}: ", uid); |
|---|