Right so my codes for my test view is:
@Secured(["IS_AUTHENTICATED_REMEMBERED", "IS_AUTHENTICATED_FULLY"]) def list(){ def allPosts = postService.getPosts() }
Try to return from the service in this way
@Transactional class PostService { def getPosts() { Post.list() } }
2.1m questions
2.1m answers
60 comments
57.0k users