orbit-basic/lib/orbit_controller_lib.rb

12 lines
258 B
Ruby
Raw Normal View History

2012-07-05 08:00:45 +00:00
module OrbitControllerLib
module DivisionForDisable
def get_disable_object_by_user(object_class)
if is_admin? or is_manager?
object_class.admin_manager_all
else
object_class.all
end
end
end
end