Revision 5aac54d7
Added by Dmitri Dolguikh almost 10 years ago
app/models/concerns/hostext/search.rb | ||
---|---|---|
|
||
if SETTINGS[:locations_enabled]
|
||
scoped_search :in => :location, :on => :title, :rename => :location, :complete_value => true
|
||
scoped_search :in => :location, :on => :id, :rename => :location_id, :complete_value => true
|
||
scoped_search :on => :location_id, :complete_value => true
|
||
end
|
||
if SETTINGS[:organizations_enabled]
|
||
scoped_search :in => :organization, :on => :title, :rename => :organization, :complete_value => true
|
||
scoped_search :in => :organization, :on => :id, :rename => :organization_id, :complete_value => true
|
||
scoped_search :on => :organization_id, :complete_value => true
|
||
end
|
||
scoped_search :in => :config_groups, :on => :name, :complete_value => true, :rename => :config_group, :only_explicit => true, :operators => ['= ', '~ '], :ext_method => :search_by_config_group
|
||
|
Also available in: Unified diff
fixes #5994: Power and Console buttons are available to non-admin users with appropriate permissions