新增:用户签署cla字段

This commit is contained in:
yystopf 2023-04-20 11:39:42 +08:00
parent 881acd2480
commit c91b986bec
1 changed files with 1 additions and 0 deletions

View File

@ -28,3 +28,4 @@ json.message_unread_total @message_unread_total
json.has_trace_user @user.trace_user.present?
json.is_new @user.login.present? && params[:login].to_s.include?("#{@user.login}")
json.nps EduSetting.get("nps-on-off-switch").to_s == 'true' && UserNp.where(user_id: current_user.id).where("created_at >= ?", (Time.now - 30.days).beginning_of_day ).blank?
json.sign_cla @user.sign_cla