|
|
|
@ -103,7 +103,7 @@ class Poll < ApplicationRecord
|
|
|
|
|
if course.is_end
|
|
|
|
|
status = 4
|
|
|
|
|
else
|
|
|
|
|
if user.present? && user.student_of_course?(course)
|
|
|
|
|
if user.present? && user.course_identity(course) == Course::STUDENT
|
|
|
|
|
ex_time = get_poll_times(user.id,false)
|
|
|
|
|
pb_time = ex_time[:publish_time]
|
|
|
|
|
ed_time = ex_time[:end_time]
|
|
|
|
|