From efef1d943fd0e2ed3949bf54db45fdd81b53da9c Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Fri, 30 Oct 2015 17:13:06 +0800 Subject: [PATCH] outline bug --- app/views/layouts/base_courses.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/base_courses.html.erb b/app/views/layouts/base_courses.html.erb index 305eaaa29..05ee7e086 100644 --- a/app/views/layouts/base_courses.html.erb +++ b/app/views/layouts/base_courses.html.erb @@ -90,9 +90,9 @@ <% elsif User.current && @course.tea_id == User.current.id && @course.outline != 0 && BlogComment.where(:id=>@course.outline).count != 0%> - <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course)%> + <% elsif User.current && @course.tea_id != User.current.id && !@course.is_public? && User.current.member_of_course?(@course) && @course.outline != 0%> - <% elsif User.current && @course.tea_id != User.current.id && @course.is_public?%> + <% elsif User.current && @course.tea_id != User.current.id && @course.is_public? && @course.outline != 0%> <%else%> <%end %>