Modified: trunk/app/views/users/index.rhtml (3751 => 3752)
--- trunk/app/views/users/index.rhtml 2013-10-08 13:56:42 UTC (rev 3751)
+++ trunk/app/views/users/index.rhtml 2013-10-08 14:36:04 UTC (rev 3752)
@@ -28,13 +28,15 @@
<% end %>
<% end -%>
-<% unless (active = User.last_active(10)).empty? %>
- <div class="tabContainer">
- <div class="tabTitle">Last Active</div>
- <div class="tabContent">
- <%= render :partial => "users/table", :locals => { :collection => active } %>
- </div>
- </div>
+<% if admin? %>
+ <% unless (active = User.last_active(10)).empty? %>
+ <div class="tabContainer">
+ <div class="tabTitle">Last Active</div>
+ <div class="tabContent">
+ <%= render :partial => "users/table", :locals => { :collection => active } %>
+ </div>
+ </div>
+ <% end %>
<% end %>
<% unless (friendliest = User.most_friends).empty? %>