Revision feed4758
Added by Amos Benari almost 12 years ago
- ID feed47584616d5aa4ff0b40340d6592b7fcf375b
app/helpers/hosts_and_hostgroups_helper.rb | ||
---|---|---|
|
||
def accessible_hostgroups
|
||
hg = (User.current.hostgroups.any? and !User.current.admin?) ? User.current.hostgroups : Hostgroup.all
|
||
hg.sort
|
||
hg.sort{ |l, r| l.to_label <=> r.to_label }
|
||
end
|
||
|
||
def parent_classes obj
|
Also available in: Unified diff
fixes #1192 Class display not sorted in nested hostgroup