From cfbee65598431e28ee51bf771c306603cee67221 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 5 Nov 2019 16:32:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=91=E8=AF=BE=E7=9A=84=E5=AD=A6=E7=94=9F?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=89=8B=E6=9C=BA?= =?UTF-8?q?=E5=8F=B7=E5=92=8C=E9=82=AE=E7=AE=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/students.json.jbuilder | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/courses/students.json.jbuilder b/app/views/courses/students.json.jbuilder index 5788b44f2..2790a81fc 100644 --- a/app/views/courses/students.json.jbuilder +++ b/app/views/courses/students.json.jbuilder @@ -10,8 +10,8 @@ json.students do if @user_course_identity < Course::ASSISTANT_PROFESSOR && !params[:course_group_id].present? json.member_roles student.user.course_role(@course) end - json.user_phone student.user.hidden_phone - json.user_mail student.user.hidden_mail + json.user_phone @course.excellent ? "" : student.user.hidden_phone + json.user_mail @course.excellent ? "" : student.user.hidden_mail end end json.students_count @students_count