<% if read_only || cannot?(:update_core, @question) %>

  <%= render_tags(form.object.tags.order(:name)) %>

<% else %>

  <%= text_field(:question, :tag_ids, {class: 'text form-control'}) %>

<% end %>

<% if read_only || cannot?(:update_tags, @question) %>

  <%= render_tags(form.object.tags.order(:name)) %>

<% else %>

  <%= text_field(:question, :tag_ids, {class: 'text form-control'}) %>

<% end %>

Make tags editable on questions with answers
Make tags editable on questions with answers
