debian-mirror-gitlab/app/services/protected_tags/update_service.rb
2017-08-17 22:00:37 +05:30

10 lines
259 B
Ruby

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