This commit is contained in:
@@ -13,6 +13,7 @@ import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.PathParam;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.QueryParam;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import javax.ws.rs.core.Response;
|
||||
|
||||
@@ -73,7 +74,7 @@ public interface IPrivilegeService {
|
||||
@ApiResponse(code = HttpServletResponse.SC_FORBIDDEN, message = "Insufficient access rights.")
|
||||
})
|
||||
@RolesAllowed(Roles.USER)
|
||||
Response addCurrentUserPrivilege(@ApiParam(value="The token of the share.", required=true) @Valid @NotNull String token);
|
||||
Response addCurrentUserPrivilege(@ApiParam(value="The token of the share.", required=true) @QueryParam("share") @Valid @NotNull String token);
|
||||
|
||||
/**
|
||||
* Returns the privileges for a particular user.
|
||||
@@ -152,6 +153,6 @@ public interface IPrivilegeService {
|
||||
@ApiResponse(code = HttpServletResponse.SC_FORBIDDEN, message = "Insufficient access rights.")
|
||||
})
|
||||
@RolesAllowed(Roles.ADMIN)
|
||||
Response addUserPrivilege(@ApiParam(value="The user id.") @PathParam("id") long id, @ApiParam(value="The token of the share.", required=true) @Valid @NotNull String token);
|
||||
Response addUserPrivilege(@ApiParam(value="The user id.") @PathParam("id") long id, @ApiParam(value="The token of the share.", required=true) @QueryParam("share") @Valid @NotNull String token);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user