diff options
Diffstat (limited to 'lib/bulk_imports/groups/pipelines/members_pipeline.rb')
-rw-r--r-- | lib/bulk_imports/groups/pipelines/members_pipeline.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bulk_imports/groups/pipelines/members_pipeline.rb b/lib/bulk_imports/groups/pipelines/members_pipeline.rb index 5e4293d2c06..265abd5e3a7 100644 --- a/lib/bulk_imports/groups/pipelines/members_pipeline.rb +++ b/lib/bulk_imports/groups/pipelines/members_pipeline.rb @@ -15,6 +15,9 @@ module BulkImports def load(context, data) return unless data + # Current user is already a member + return if data['user_id'].to_i == context.current_user.id + context.group.members.create!(data) end end |