From 9bcdc6d3551c389eb3899de1138527ed6ec406b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=B1=E5=91=B1=E5=91=B1?= Date: Thu, 13 Nov 2025 11:18:06 +0800 Subject: [PATCH] fix bug --- app/controllers/api/v1/projects/code_check_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/projects/code_check_controller.rb b/app/controllers/api/v1/projects/code_check_controller.rb index 288617012..89b2ef7d8 100644 --- a/app/controllers/api/v1/projects/code_check_controller.rb +++ b/app/controllers/api/v1/projects/code_check_controller.rb @@ -1,7 +1,7 @@ class Api::V1::Projects::CodeCheckController < Api::V1::BaseController before_action :require_public_and_member_above before_action :load_project - before_action :verification_with_setting('open_huawei_check_users') + before_action -> { verification_with_setting('open_huawei_check_users') } before_action do @client = Api::V1::Projects::CodecheckService.new(@project)