运营人员也能查看课程

dev_trainings
daiao 6 years ago
parent aeec652649
commit 5b07b39fb2

@ -1,5 +1,5 @@
<% objects.each do |object| %>
<% allow_visit = object.is_public == 1 || User.current.admin? || User.current.member_of_course?(object) %>
<% allow_visit = object.is_public == 1 || User.current.admin? || User.current.member_of_course?(object) || User.current.business? %>
<div class="square-Item" onclick="open_course(<%= object.id %>, <%= allow_visit %>)" style="cursor: pointer;">
<% if object.is_public == 1 %>
<div class="publicpart <%= object.id == 1309 ? 'orangeBlack' : '' %>"></div>

Loading…
Cancel
Save