diff --git a/app/views/macs/index.html.erb b/app/views/macs/index.html.erb
index 3ebb75f..81aaf54 100755
--- a/app/views/macs/index.html.erb
+++ b/app/views/macs/index.html.erb
@@ -29,15 +29,23 @@
<%= link_to 'Activity Graph', macs_history_path, :class => 'btn' if can? :read_details, Mac %>
-<%
- @active_macs.each do |mac|
-Rails.logger.info mac.inspect %>
+<% @active_macs.each do |mac| %>
-
- <%= link_to mac do %>
- <%= " - "+((Time.now - mac.since) / 1.hour).round(1).to_s+" hours" if can? :manage, mac %>">
- <%= mac.user.name unless mac.user.blank? %>
- <%= mac.mac if mac.user.blank? %>
- <%= "("+mac.note+")" unless mac.note.blank? %><% end %>
+ <% if user_signed_in? %>
+ <%= link_to mac do %>
+ <%= " - "+((Time.now - mac.since) / 1.hour).round(1).to_s+" hours" if can? :manage, mac %>">
+ <%= mac.user.name unless mac.user.blank? %>
+ <%= mac.mac if mac.user.blank? %>
+ <%= "("+mac.note+")" unless mac.note.blank? %>
+
+ <% end %>
+ <% else %>
+
+ <%= mac.user.name unless mac.user.blank? %>
+ <%= mac.mac if mac.user.blank? %>
+ <%= "("+mac.note+")" unless mac.note.blank? %>
+
+ <% end %>
<%= link_to ' Edit', edit_mac_path(mac) if can? :update, mac %>
<% end %>