BigW Consortium Gitlab

Commit dd86c91c by James Lopez

fixed small issue mapping members

parent 38b92fe8
......@@ -25,7 +25,6 @@ module Gitlab
def default_project_member
@default_project_member ||=
begin
return @project.project_members.first.user.id unless @project.project_members.empty?
default_member = ProjectMember.new(default_project_member_hash)
default_member.save!
default_member.user.id
......
......@@ -39,11 +39,11 @@ module Gitlab
def update_missing_author(relation_hash, members_map, user_admin)
old_author_id = relation_hash['author_id']
# Users with admin access have access to mapping of users
# Users with admin access can map users
if user_admin
relation_hash['author_id'] = members_map.default_project_member
else
relation_hash['author_id'] = members_map.map[old_author_id]
else
relation_hash['author_id'] = members_map.default_project_member
end
author = relation_hash.delete('author')
......
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