Project

General

Profile

« Previous | Next » 

Revision caa5fcf0

Added by Greg Sutcliffe about 12 years ago

  • ID caa5fcf0b6aabc8d69ceda82bf60cad060f8221d

Fix privacy leaks in stats, facts, and dashboard - fixes #1582

View differences:

app/controllers/dashboard_controller.rb
private
def prefetch_data
@hosts = Host.search_for(params[:search])
my_hosts = User.current.admin? ? Host : Host.my_hosts
@hosts = my_hosts.search_for(params[:search])
@report = {
:total_hosts => @hosts.count,
:bad_hosts => @hosts.recent.with_error.count,

Also available in: Unified diff