Project

General

Profile

« Previous | Next » 

Revision 4d4b84f6

Added by Ohad Levy almost 13 years ago

  • ID 4d4b84f6b722874504f508fa92802f6ddee37c11

fixes #35 - Allow hostgroup nesting for puppet classes and parameters

View differences:

app/helpers/hosts_helper.rb
(User.current.domains.any? and !User.current.admin?) ? User.current.domains : Domain.all
end
def accessible_hostgroups
(User.current.hostgroups.any? and !User.current.admin?) ? User.current.hostgroups : Hostgroup.all
end
def update_details_from_hostgroup
return nil unless @host.new_record?
remote_function(:url => { :action => "process_hostgroup" },

Also available in: Unified diff