项目列表中公开项目无法点击

This commit is contained in:
daiao 2016-09-09 14:22:47 +08:00
parent 4959910ebe
commit 19d925d592
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@
<% else %>
<% projects.each_with_index do |project, i| %>
<div class="syllabus_courses_list <%= i > 4 ? 'none' : ''%>" style="cursor: default;">
<% allow_visit = User.current.member_of?(project) || User.current.admin? || project.is_public == 1 %>
<% allow_visit = User.current.member_of?(project) || User.current.admin? || project.is_public? %>
<div class="sy_courses_open">
<span id="collect_project_icon_<%= project.id %>">
<%=render :partial => 'collect_project', :locals => {:project => project} %>