summaryrefslogtreecommitdiff
path: root/app/services/protected_tags/update_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/protected_tags/update_service.rb')
-rw-r--r--app/services/protected_tags/update_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/protected_tags/update_service.rb b/app/services/protected_tags/update_service.rb
index 3eb5f4955ee..e337ec39898 100644
--- a/app/services/protected_tags/update_service.rb
+++ b/app/services/protected_tags/update_service.rb
@@ -1,11 +1,11 @@
# frozen_string_literal: true
module ProtectedTags
- class UpdateService < BaseService
+ class UpdateService < ProtectedTags::BaseService
def execute(protected_tag)
raise Gitlab::Access::AccessDeniedError unless can?(current_user, :admin_project, project)
- protected_tag.update(params)
+ protected_tag.update(filtered_params)
protected_tag
end
end