推荐的私有课程,点击“资源”返回403,点击“作业”也应该返回403
This commit is contained in:
parent
82fb50ccd2
commit
1b5cdbe628
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue