fixes #1634: Allow users to edit feedback they give out

This commit is contained in:
r888888888
2015-08-02 18:19:44 -07:00
parent 2ceb9a0c4f
commit 5e1dc81ab3
4 changed files with 36 additions and 1 deletions

View File

@@ -8,6 +8,10 @@
<li><strong>Category</strong> <%= @user_feedback.category %></li>
<li><strong>Message</strong> <%= format_text @user_feedback.body %></li>
</ul>
<% if @user_feedback.creator_id == CurrentUser.id || CurrentUser.is_moderator? %>
<p><%= link_to "Edit", edit_user_feedback_path(@user_feedback) %></p>
<% end %>
</div>
</div>