I have a model Answer. I'd like to use card to show reference answer to
users who are allowed to view it, but hide it from others so I wrote
<card:question.reference_answer>
<header:>
<h5>Reference answer:</h5>
</header:>
<body:>
<view:content/>
</body:>
</card>
but it breaks because of view on unviewable field content. if I add if
it works
<with with="&this.question.reference_answer">
<card if="&this.try.viewable_by? current_user">
<header:>
<h5>Reference answer:</h5>
</header:>
<body:>
<view:content/>
</body:>
</card>
</with>
Also if I use plain
<card:question.reference_answer>
it shows only to those, who can view the reference answer. Is this
correct behavior?
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.