Hi,
I find very useful to use Edge conditional to modify the view for different resources of my Model in the DB. I have been using auth module and @if conditionals and it works great. Eg:
@if(auth.user.id == null)
<>
@else
<<show components for registered/logged users here>>
@endif
QUESTION
Let us say I create a new table called Game with the resource bool Active. How can I apply the same logic as above? I need to create a Helper or local? Or do I need to use a Foreign Key referencing the user?
@if(auth.game.Active == true)
<>
@else
<>
@endif