Commit 279412f9 authored by James Lopez's avatar James Lopez

updated relation_factory based on MR feedback

parent 77794579
...@@ -57,11 +57,11 @@ module Gitlab ...@@ -57,11 +57,11 @@ module Gitlab
author = @relation_hash.delete('author') 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 end
def can_update_notes? def missing_author?
(admin_user? && @members_mapper.missing_author_ids.include?(old_author_id)) || !admin_user? !admin_user? || @members_mapper.missing_author_ids.include?(old_author_id)
end end
def missing_author_note(updated_at, author_name) def missing_author_note(updated_at, author_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment