Revision e170c321
Added by Olivier Favre about 12 years ago
- ID e170c3210ceccccc43ef0795c89a14f472a074f9
config/routes.rb | ||
---|---|---|
end
|
||
end
|
||
|
||
resources :compute_resources do
|
||
member do
|
||
post 'hardware_profile_selected'
|
||
post 'cluster_selected'
|
||
end
|
||
resources :vms, :controller => "ComputeResources::Vms" do
|
||
constraints(:id => /[^\/]+/) do
|
||
resources :compute_resources do
|
||
member do
|
||
put 'power'
|
||
get 'console'
|
||
post 'hardware_profile_selected'
|
||
post 'cluster_selected'
|
||
end
|
||
end
|
||
resources :images
|
||
collection do
|
||
get 'auto_complete_search'
|
||
post 'provider_selected'
|
||
put 'test_connection'
|
||
constraints(:id => /[^\/]+/) do
|
||
resources :vms, :controller => "compute_resources_vms" do
|
||
member do
|
||
put 'power'
|
||
get 'console'
|
||
end
|
||
end
|
||
end
|
||
collection do
|
||
get 'auto_complete_search'
|
||
post 'provider_selected'
|
||
put 'test_connection'
|
||
end
|
||
resources :images
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
fixes #1597 - Restrict compute resources access by user
And add some rights to give non admin users so they can perform some normal actions on the hosts they own.
unit/domain_parameter_test.rb self-broke... added a tiny fix.
Removing compute_resources/vms nesting, it is such a nightmare for functional tests.
Signed-off-by: Olivier Favre <olivier@yakaz.com>