|
|
@ -42,6 +42,7 @@ class Weapps::AttendancesController < ApplicationController
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def student_attendances
|
|
|
|
def student_attendances
|
|
|
|
|
|
|
|
tip_exception(403) if @user_course_identity > Course::STUDENT
|
|
|
|
# tip_exception("学生身份的签到列表") if @user_course_identity != Course::STUDENT
|
|
|
|
# tip_exception("学生身份的签到列表") if @user_course_identity != Course::STUDENT
|
|
|
|
member = @course.students.find_by(user_id: current_user.id)
|
|
|
|
member = @course.students.find_by(user_id: current_user.id)
|
|
|
|
if member.present?
|
|
|
|
if member.present?
|
|
|
|