<% if logged_in? and logged_in_person.permitted?("edit", @question.questionnaire) -%>
  <% if @editing -%>
    <%= text_area_tag "answer[#{@question.id}]", value, :rows => 4 %>
  <% else -%>
    <%= simple_format value %>
  <% end -%>
<% end -%>

<% if @editing -%>
  <% if logged_in? and logged_in_person.permitted?("edit_answers", @question.questionnaire) -%>
    <%= text_area_tag "answer[#{@question.id}]", value, :rows => 4 %>
  <% end -%>
<% else -%>
  <% if logged_in? and logged_in_person.permitted?("view_answers", @question.questionnaire) -%>
    <%= simple_format value %>
  <% end -%>
<% end -%>

Fix view permissioning on annotation fields - you don't need to be a questionnaire editor to see them
Fix view permissioning on annotation fields - you don't need to be a questionnaire editor to see them
