Skip to content

Commit

Permalink
- FIX: Fixed permission issue with projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-raubach committed Jan 30, 2025
1 parent dca19eb commit bed7957
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
import static jhi.germinate.server.database.codegen.tables.Projects.PROJECTS;

@Path("project")
@Secured(UserType.DATA_CURATOR)
public class ProjectResource
{
@GET
Expand Down Expand Up @@ -62,6 +61,7 @@ public Response getProjectStats(@PathParam("projectId") Integer projectId)
@POST
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces(MediaType.APPLICATION_JSON)
@Secured(UserType.DATA_CURATOR)
public Response postProject(@FormDataParam("name") String name,
@FormDataParam("description") String description,
@FormDataParam("pageContent") String pageContent,
Expand Down Expand Up @@ -148,6 +148,7 @@ public Response postProject(@FormDataParam("name") String name,
@Path("/{projectId:\\d+}")
@Consumes(MediaType.MULTIPART_FORM_DATA)
@Produces(MediaType.APPLICATION_JSON)
@Secured(UserType.DATA_CURATOR)
public Response patchProject(@PathParam("projectId") Integer projectId,
@FormDataParam("name") String name,
@FormDataParam("description") String description,
Expand Down Expand Up @@ -252,6 +253,7 @@ public Response patchProject(@PathParam("projectId") Integer projectId,
@Path("/{projectId:\\d+}")
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Secured(UserType.DATA_CURATOR)
public Response deleteProject(@PathParam("projectId") Integer projectId)
throws SQLException
{
Expand Down

0 comments on commit bed7957

Please sign in to comment.