forked from Gitlink/forgeplus
update sonar #475
|
|
@ -72,6 +72,6 @@ class Api::V1::BaseController < ApplicationController
|
|||
end
|
||||
|
||||
def verification_with_setting(key)
|
||||
return render_forbidden unless EduSetting.get(key).split(",").include?(current_user.id.to_s)
|
||||
return render_error("您没有该权限") unless EduSetting.get(key).split(",").include?(current_user.id.to_s)
|
||||
end
|
||||
end
|
||||
|
|
@ -7,7 +7,7 @@ class Api::V1::Projects::CodeChecksController < Api::V1::BaseController
|
|||
@client = Api::V1::Projects::CodecheckService.new(@project)
|
||||
end
|
||||
def index
|
||||
|
||||
render_ok
|
||||
end
|
||||
def create
|
||||
@result = @client.create_task(params["branch"])
|
||||
|
|
|
|||
Loading…
Reference in New Issue