用户信息里增加是否学生的判断

dev_aliyun
cxt 6 years ago
parent 70739f0c0e
commit 25d4cac572

@ -506,7 +506,7 @@ class CareersService
{username: current_user.show_name, login: current_user.login,
user_id: current_user.id, image_url: url_to_avatar(current_user),
admin: current_user.admin?, is_teacher: current_user.user_extensions.try(:identity) == 0,
tidding_count: count, phone: current_user.phone}
tidding_count: count, phone: current_user.phone, is_student: current_user.user_extensions.try(:identity) == 1}
end
def find_career id

Loading…
Cancel
Save