Skip to content
This repository has been archived by the owner on Jul 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1258 from YaleSTC/1245_ei_history_permission
Browse files Browse the repository at this point in the history
[1245] Restrict equipment item note viewing to admins and higher
  • Loading branch information
squidgetx committed Jun 8, 2015
2 parents c497b2e + ec2c8f0 commit 0653874
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/equipment_items/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<%# NOTES %>
<div class="row">
<div class="col-md-12">
<% unless @equipment_item.notes.blank? %>
<% if @equipment_item.notes.present? && (can? :view, :eq_log) %>
<hr>
<h3>Notes</h3>
<div class='notes-container'><%= markdown(@equipment_item.notes) %></div>
Expand Down

0 comments on commit 0653874

Please sign in to comment.