题库的权限

dev_aliyun_beta
cxt 5 years ago
parent 6aa6482f8c
commit aa531cb537

@ -11,4 +11,5 @@ json.question_banks @question_banks do |question_bank|
json.course_list_name question_bank.course_list&.name
json.updated_at question_bank.updated_at
json.solve_count @solve_count_map.fetch(question_bank.id, 0)
json.authorize question_bank.user_id == current_user.id || current_user.admin?
end

Loading…
Cancel
Save