Displaying 1 result from an estimated 1 matches for "24c7908".
Did you mean:
24c59058
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...kup(id, priv)
@nic = Nic.find(id)
- authorized!(priv, at nic.host.hardware_pool)
+ authorized!(priv, (@nic.parent.class == Host ? @nic.host.hardware_pool : @nic.vm.vm_resource_pool))
end
end
diff --git a/src/app/services/vm_service.rb b/src/app/services/vm_service.rb
index 3d9777c..24c7908 100644
--- a/src/app/services/vm_service.rb
+++ b/src/app/services/vm_service.rb
@@ -82,8 +82,8 @@ module VmService
def svc_new(vm_resource_pool_id)
raise ActionError.new("VM Resource Pool is required.") unless vm_resource_pool_id
- new_vm_hash = {:vm_resource_pool_id => v...