diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-29 08:25:10 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-29 08:25:10 +0300 |
commit | 7b23b5500583abdc9b3f53724e6f3fb5238f3449 (patch) | |
tree | a74e38c36ff65ae521217366b972b54d90cb466e /lib/gitlab/bitbucket_server_import | |
parent | a5722c378bc88984657372267c16bb57168c02af (diff) |
Restrict to confirmed users and allow memoization of unkonwn e-mails
Diffstat (limited to 'lib/gitlab/bitbucket_server_import')
-rw-r--r-- | lib/gitlab/bitbucket_server_import/importer.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/bitbucket_server_import/importer.rb b/lib/gitlab/bitbucket_server_import/importer.rb index f5febd266cb..0da572f24fc 100644 --- a/lib/gitlab/bitbucket_server_import/importer.rb +++ b/lib/gitlab/bitbucket_server_import/importer.rb @@ -64,8 +64,8 @@ module Gitlab return users[email] if users.key?(email) - user = User.find_by_any_email(email) - users[email] = user&.id if user + user = User.find_by_any_email(email, confirmed: true) + users[email] = user&.id user&.id end |