summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/gitlab/import_export/relation_factory.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/import_export/relation_factory.rb b/lib/gitlab/import_export/relation_factory.rb
index 5f12caa8981..4e4ce4f14a9 100644
--- a/lib/gitlab/import_export/relation_factory.rb
+++ b/lib/gitlab/import_export/relation_factory.rb
@@ -57,11 +57,11 @@ module Gitlab
author = @relation_hash.delete('author')
- update_note_for_missing_author(author['name']) if can_update_notes?
+ update_note_for_missing_author(author['name']) if missing_author?
end
- def can_update_notes?
- (admin_user? && @members_mapper.missing_author_ids.include?(old_author_id)) || !admin_user?
+ def missing_author?
+ !admin_user? || @members_mapper.missing_author_ids.include?(old_author_id)
end
def missing_author_note(updated_at, author_name)