Skip to content

Commit

Permalink
Only show submission buttons to people who can moderate them
Browse files Browse the repository at this point in the history
  • Loading branch information
augustf committed May 2, 2012
1 parent 81ce273 commit 5bd77c6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/submissions/_show_body.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</div>
</article>
<aside>

<% if can? :update, @submission %>
<div class="form-stacked">
<h4>Moderate Content</h4>
<div id="moderate-select" class="btn-toolbar">
Expand All @@ -16,6 +16,7 @@

<div id="moderate-include"></div>
</div>
<% end %>

<br />
<b>Approved?:</b>
Expand Down

0 comments on commit 5bd77c6

Please sign in to comment.