diff options
author | Francisco Javier López <fjlopez@gitlab.com> | 2019-01-25 12:11:36 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-01-31 16:52:50 +0100 |
commit | 4b868ba8e71be9aa5591378555122d76c27ac777 (patch) | |
tree | 70100cff765bad7cbefdfd8f4eb4ba032a512a82 /app/services/protected_branches | |
parent | c653921b6f5b1d8b17fa33aa194117ea9446bf28 (diff) | |
download | gitlab-ce-4b868ba8e71be9aa5591378555122d76c27ac777.tar.gz |
[master] Check access rights when creating/updating ProtectedRefs
Diffstat (limited to 'app/services/protected_branches')
-rw-r--r-- | app/services/protected_branches/api_service.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/app/services/protected_branches/api_service.rb b/app/services/protected_branches/api_service.rb index 4340d3e8260..9b85e13107b 100644 --- a/app/services/protected_branches/api_service.rb +++ b/app/services/protected_branches/api_service.rb @@ -6,8 +6,6 @@ module ProtectedBranches @push_params = AccessLevelParams.new(:push, params) @merge_params = AccessLevelParams.new(:merge, params) - verify_params! - protected_branch_params = { name: params[:name], push_access_levels_attributes: @push_params.access_levels, @@ -16,11 +14,5 @@ module ProtectedBranches ::ProtectedBranches::CreateService.new(@project, @current_user, protected_branch_params).execute end - - private - - def verify_params! - # EE-only - end end end |