diff options
author | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-05 20:59:46 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-04-06 12:56:21 +0300 |
commit | f16377e7dc762462817dd0b34e36811c55988b10 (patch) | |
tree | 0c2848cee6743f0648e2c3d9361d201aca7fbf1a /app/services/protected_branches | |
parent | 18506d4b8b8bc780b3b1e4c61339af38b5c49bb2 (diff) |
Protected Tags backend review changes
Added changelog
Diffstat (limited to 'app/services/protected_branches')
-rw-r--r-- | app/services/protected_branches/update_service.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/services/protected_branches/update_service.rb b/app/services/protected_branches/update_service.rb index 89d8ba60134..4b3337a5c9d 100644 --- a/app/services/protected_branches/update_service.rb +++ b/app/services/protected_branches/update_service.rb @@ -1,13 +1,10 @@ module ProtectedBranches class UpdateService < BaseService - attr_reader :protected_branch - def execute(protected_branch) raise Gitlab::Access::AccessDeniedError unless can?(current_user, :admin_project, project) - @protected_branch = protected_branch - @protected_branch.update(params) - @protected_branch + protected_branch.update(params) + protected_branch end end end |