Commit 9cf90acf authored by Piotr Gawron's avatar Piotr Gawron
Browse files

revert objectId to idObject

parent 149cbd82
......@@ -89,7 +89,7 @@ public class ProjectController extends BaseController {
return response;
}
@PostFilter("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + filterObject['objectId'])")
@PostFilter("hasAnyAuthority('IS_ADMIN', 'READ_PROJECT:' + filterObject['projectId'])")
@GetMapping(value = "/")
public List<Map<String, Object>> getProjects() {
return projectController.getProjects();
......
......@@ -90,7 +90,7 @@ public class ProjectRestImpl extends BaseRestImpl {
} else {
result.put("organism", null);
}
result.put("objectId", project.getProjectId());
result.put("idObject", project.getId());
if (project.getStatus() != null) {
result.put("status", project.getStatus().toString());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment