Skip to content
Snippets Groups Projects
Commit 918eaba0 authored by James Lopez's avatar James Lopez
Browse files

remove old project members from project

parent a1a5dd4b
No related branches found
No related tags found
1 merge request!8909Fix user validation error in Import/Export
Pipeline #
Loading
@@ -41,6 +41,10 @@ module Gitlab
Loading
@@ -41,6 +41,10 @@ module Gitlab
end end
   
def ensure_default_member! def ensure_default_member!
@project.project_members.each do |member|
member.destroy
end
ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true) ProjectMember.create!(user: @user, access_level: ProjectMember::MASTER, source_id: @project.id, importing: true)
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment