Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_service.rb « protected_tags « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: aea6a48968d30302b4d927ade03b868e764cbf7e (plain)
1
2
3
4
5
6
7
8
9
10
module ProtectedTags
  class UpdateService < BaseService
    def execute(protected_tag)
      raise Gitlab::Access::AccessDeniedError unless can?(current_user, :admin_project, project)

      protected_tag.update(params)
      protected_tag
    end
  end
end