I'm building a web application with Grails, using the Acegi/Spring Security plugin.
I want to only show the 'Edit' link if the page is showing the details of the currently logged in user.
For example, the logged in user with id = 44 is viewing the page 'localhost:8080/app/user/show/44'
I've tried the following but it's not working. Any ideas on how to make this work, or is there some really simple way I've missed?
<g:isLoggedIn>
<g:if test="${person.id == loggedInUserInfo(field='id')}">
<g:link controller="user" action="edit" id="${person.id}">Edit</g:link>
</g:if>
</g:isLoggedIn>