修复学生不能退出私有课程的BUG

This commit is contained in:
sw 2014-11-17 15:01:48 +08:00
parent aa0f10e9fd
commit 80e3e44f13
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ module WatchersHelper
return '' unless user && user.logged?
# modify by nwb
# 主讲教师不允许退出课程
return '' if user.id == course.tea_id || course.is_public == 0
return '' if user.id == course.tea_id
joined = user.member_of_course?(course)
text = joined ? l(:label_exit_course) : l(:label_new_join)
url_t = join_path(:object_id => course.id)