diff options
author | Marin Jankovski <maxlazio@gmail.com> | 2014-12-26 13:39:12 +0300 |
---|---|---|
committer | Marin Jankovski <maxlazio@gmail.com> | 2014-12-26 13:39:12 +0300 |
commit | 92eb3974ac28aff7c78f4ca0cbafbad842fc7160 (patch) | |
tree | daa081e7ef8cd4d1527000dbc5a7aca5caefe9af /config | |
parent | 770b2a5cfbec1081756bfa2d8bf046b7b16bb638 (diff) |
Add option to disable/enable developers push to already protected branches.
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index b6c5bb5b908..397329d311c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -256,7 +256,7 @@ Gitlab::Application.routes.draw do resources :branches, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex } resources :tags, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex } - resources :protected_branches, only: [:index, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex } + resources :protected_branches, only: [:index, :create, :update, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex } resources :refs, only: [] do collection do |