orbit disable object for categories

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-07-05 16:00:45 +08:00
1 parent edef51d58c
commit c5fdff764e
20 files changed
+89 -46

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
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