summaryrefslogtreecommitdiff
path: root/lib/gitlab/import_export/members_mapper.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2017-02-01 12:09:02 +0100
committerJames Lopez <james@jameslopez.es>2017-02-07 11:06:05 +0100
commit8409340b3b3c6e57285a30a585c1f6fb957cd6da (patch)
treecfa36c750654c2f7b8caa81f30801f5b41583fcd /lib/gitlab/import_export/members_mapper.rb
parent572fb0be9b1d45437b7c0ed1000399657f471ec7 (diff)
downloadgitlab-ce-8409340b3b3c6e57285a30a585c1f6fb957cd6da.tar.gz
Add missing group members to export for I/Efix/import-group-members
Diffstat (limited to 'lib/gitlab/import_export/members_mapper.rb')
-rw-r--r--lib/gitlab/import_export/members_mapper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/members_mapper.rb b/lib/gitlab/import_export/members_mapper.rb
index a09577ae48d..8b8e48aac76 100644
--- a/lib/gitlab/import_export/members_mapper.rb
+++ b/lib/gitlab/import_export/members_mapper.rb
@@ -32,6 +32,10 @@ module Gitlab
@user.id
end
+ def include?(old_author_id)
+ map.keys.include?(old_author_id) && map[old_author_id] != default_user_id
+ end
+
private
def missing_keys_tracking_hash