Project

General

Profile

« Previous | Next » 

Revision 34f64353

Added by Ohad Levy over 12 years ago

  • ID 34f64353a05fd0aa987ea18e8d2e36b1b4894efd

fixes #1056 - Rundeck url doesn't work when ldap auth is active

View differences:

app/controllers/hosts_controller.rb
# If the user has a fact_filter then we need to include :fact_values
# We do not include most associations unless we are processing a html page
def included_associations(include = [])
include += [:hostgroup, :domain, :operatingsystem, :environment, :model] unless request_json?
include += [:hostgroup, :domain, :operatingsystem, :environment, :model] unless api_request?
include += [:fact_values] if User.current.user_facts.any?
return include
end

Also available in: Unified diff