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…
Reference in new issue