开启确权激励的用户或项目
This commit is contained in:
parent
8a67c19c67
commit
9cd150be88
|
@ -66,6 +66,7 @@ module ProjectsHelper
|
|||
jianmu_devops: jianmu_devops_code(project, user),
|
||||
jianmu_devops_url: jianmu_devops_url,
|
||||
cloud_ide_saas_url: cloud_ide_saas_url(user),
|
||||
open_blockchain: EduSetting.get("open_blockchain_projects").to_s.split(",").include?(project.id) || EduSetting.get("open_blockchain_users").to_s.split(",").include?(project.identifier),
|
||||
ignore_id: project.ignore_id
|
||||
}).compact
|
||||
|
||||
|
|
|
@ -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.open_blockchain EduSetting.get("open_blockchain_users").to_s.split(",").include?(@user.id) || EduSetting.get("open_blockchain_users").to_s.split(",").include?(@user.login)
|
||||
|
|
Loading…
Reference in New Issue