12 lines
258 B
Ruby
12 lines
258 B
Ruby
|
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
|