diff options
author | Fatih Acet <acetfatih@gmail.com> | 2019-07-09 11:46:16 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-07-09 11:46:16 +0000 |
commit | 14e2412ee4969d7b4124ebedbc2dd76eb0ebda47 (patch) | |
tree | 9dc20e20231713aa00fbaae2e46d976fee52d245 /app/services | |
parent | a87e2c99dc3215b8caeb670a810aa6c41b733776 (diff) | |
download | gitlab-ce-14e2412ee4969d7b4124ebedbc2dd76eb0ebda47.tar.gz |
CE Port of Allow bulk update for group issues
This is a port MR for CE
Original MR:
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14141
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/issuable/bulk_update_service.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/services/issuable/bulk_update_service.rb b/app/services/issuable/bulk_update_service.rb index c4beddf2294..6d215d7a3b9 100644 --- a/app/services/issuable/bulk_update_service.rb +++ b/app/services/issuable/bulk_update_service.rb @@ -1,7 +1,15 @@ # frozen_string_literal: true module Issuable - class BulkUpdateService < IssuableBaseService + class BulkUpdateService + include Gitlab::Allowable + + attr_accessor :current_user, :params + + def initialize(user = nil, params = {}) + @current_user, @params = user, params.dup + end + # rubocop: disable CodeReuse/ActiveRecord def execute(type) model_class = type.classify.constantize |