Displaying 1 result from an estimated 1 matches for "json_tree_internal".
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...rs/hardware_controller.rb b/src/app/controllers/hardware_controller.rb
index 56b6e08..4d93e2f 100644
--- a/src/app/controllers/hardware_controller.rb
+++ b/src/app/controllers/hardware_controller.rb
@@ -57,18 +57,13 @@ class HardwareController < PoolController
end
def json_view_tree
- json_tree_internal(Privilege::VIEW, :select_hardware_and_vm_pools)
+ json_tree_internal(:svc_show, :select_hardware_and_vm_pools)
end
def json_move_tree
- json_tree_internal(Privilege::MODIFY, :select_hardware_pools)
- end
- def json_tree_internal(privilege, filter_method)
- id = params[:id]
- if...