Commit ef9d2a2c authored by Sascha Herzinger's avatar Sascha Herzinger
Browse files

fixed transactional issue in CommentController

parent 37db8bbc
......@@ -61,7 +61,7 @@ public class CommentController extends BaseController {
@PreAuthorize("hasAuthority('IS_ADMIN')" +
" or hasAuthority('IS_CURATOR') and hasAuthority('WRITE_PROJECT:' + #projectId)" +
" or @commentDao.getById(#commentId).user?.login == authentication.name")
" or @commentService.getCommentById(#commentId)?.user?.login == authentication.name")
@DeleteMapping(value = "/{commentId}/")
public Map<String, Object> removeComment(
@RequestBody(required = false) String body,
......
Supports Markdown
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