推荐的私有课程,点击“资源”返回403,点击“作业”也应该返回403

This commit is contained in:
cxt 2016-01-29 19:41:47 +08:00
parent 82fb50ccd2
commit 1b5cdbe628
1 changed files with 1 additions and 1 deletions

View File

@ -344,7 +344,7 @@ class HomeworkCommonController < ApplicationController
#当前用户是不是课程的成员
def member_of_course
render_403 unless @course.is_public || User.current.member_of_course?(@course) || User.current.admin?
render_403 unless @course.is_public==1 || User.current.member_of_course?(@course) || User.current.admin?
end
def get_assigned_homeworks(student_works, n, index)