|
|
|
@ -128,7 +128,7 @@ class Poll < ApplicationRecord
|
|
|
|
|
en_time = end_time
|
|
|
|
|
else
|
|
|
|
|
poll_group_setting = poll_group_settings
|
|
|
|
|
user_group = course.course_members.where(user_id: user_id).select(:course_group_id)
|
|
|
|
|
user_group = course.students.where(user_id: user_id).select(:course_group_id)
|
|
|
|
|
if user_group.exists?
|
|
|
|
|
user_group_id = user_group.first&.course_group_id
|
|
|
|
|
user_p_group_setting = poll_group_setting.where(course_group_id: user_group_id).select(:publish_time,:end_time)
|
|
|
|
|