运营人员权限增加

dev_admin
daiao 6 years ago
parent 8e7a6e3de5
commit c88e0b19f2

@ -1,5 +1,5 @@
module CourseDecorator
def can_visited?
is_public == 1 || User.current.admin? || User.current.member_of_course?(self)
is_public == 1 || User.current.admin_or_business? || User.current.member_of_course?(self)
end
end
Loading…
Cancel
Save