diff options
author | Rémy Coutable <remy@rymai.me> | 2017-03-20 09:37:14 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-03-20 09:37:31 +0100 |
commit | aaaee8ae277a94c64927d57e3ce283930938a766 (patch) | |
tree | b3d8a84d13fcf1cb3d53c7bdd2f3900f35be91dd /lib/api | |
parent | 691402fb2b361ba19db3b8bdf77b75e513883423 (diff) | |
download | gitlab-ce-aaaee8ae277a94c64927d57e3ce283930938a766.tar.gz |
Allow unauthenticated access to some Branch API GET endpoints
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/branches.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/branches.rb b/lib/api/branches.rb index 2cc64fc6712..f35084a582a 100644 --- a/lib/api/branches.rb +++ b/lib/api/branches.rb @@ -4,7 +4,6 @@ module API class Branches < Grape::API include PaginationParams - before { authenticate! } before { authorize! :download_code, user_project } params do @@ -102,6 +101,7 @@ module API end post ":id/repository/branches" do authorize_push_project + result = CreateBranchService.new(user_project, current_user). execute(params[:branch], params[:ref]) |