orbit disable object for categories
This commit is contained in:
1 parent
edef51d58c
commit
c5fdff764e
20 files changed
+89
-46
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user