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)