I am testing Play framework 2.2.2. There is a helper for user authentication and seems to be simple to implement it. But if I need to hide some menus or other content from unregistered users - how can I do it?
I am thinking about if-blocks
:
@if(...) {
<h1>Content for registered users only</h1>
} else {
<h1>Register to see this content</h1>
}
but what will be in the condition block? Have anybody an example?