diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-31 22:01:53 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-31 22:01:53 +0000 |
commit | 659cceb0e8694b58a8b665de3f338245244ef114 (patch) | |
tree | ef14a192db932dc1c2ef6482f44756aa8f60e7d4 /lib | |
parent | 790b662903353c2b85d3a5cc9bb3d14a2a52ff88 (diff) | |
parent | c6aed2dfc8f879a9edf611235cae3760f3af3d4e (diff) | |
download | gitlab-ce-659cceb0e8694b58a8b665de3f338245244ef114.tar.gz |
Merge branch 'fix/import-user-validation-error' into 'master'
Fix user validation error in Import/Export
Closes #23833
See merge request !8909
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/import_export/members_mapper.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/import_export/members_mapper.rb b/lib/gitlab/import_export/members_mapper.rb index 2405b94db50..a09577ae48d 100644 --- a/lib/gitlab/import_export/members_mapper.rb +++ b/lib/gitlab/import_export/members_mapper.rb @@ -41,6 +41,8 @@ module Gitlab end def ensure_default_member! + @project.project_members.destroy_all + ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true) end |