Skip to content

Commit

Permalink
Review user permissions on streams
Browse files Browse the repository at this point in the history
  • Loading branch information
Edmundo Alvarez committed Jan 22, 2015
1 parent 0e8c6d7 commit c9d0451
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -106,8 +106,6 @@ public StreamResource(StreamService streamService,
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
public Response create(@ApiParam(name = "JSON body", required = true) final CreateStreamRequest cr) throws ValidationException {
checkPermission(RestPermissions.STREAMS_CREATE);

// Create stream.
final Stream stream = streamService.create(cr, getCurrentUser().getName());
stream.setDisabled(true);
Expand Down Expand Up @@ -181,7 +179,6 @@ public Stream get(@ApiParam(name = "streamId", required = true)
@Timed
@Path("/{streamId}")
@ApiOperation(value = "Update a stream")
@RequiresPermissions(RestPermissions.STREAMS_EDIT)
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@ApiResponses(value = {
Expand Down Expand Up @@ -284,7 +281,6 @@ public TestMatchResponse testMatch(@ApiParam(name = "streamId", required = true)
@Path("/{streamId}/clone")
@Timed
@ApiOperation(value = "Clone a stream")
@RequiresPermissions(RestPermissions.STREAMS_CREATE)
@ApiResponses(value = {
@ApiResponse(code = 404, message = "Stream not found."),
@ApiResponse(code = 400, message = "Invalid or missing Stream id.")
Expand Down

0 comments on commit c9d0451

Please sign in to comment.