diff --git a/app/controllers/members_controller.rb b/app/controllers/members_controller.rb index 61cb1c355..2cba02ed2 100644 --- a/app/controllers/members_controller.rb +++ b/app/controllers/members_controller.rb @@ -106,6 +106,7 @@ class MembersController < ApplicationController end if members.present? && members.all? { |m| m.valid? } members.each do |member| + add_trustie_user(@project.id,member.user_id) AppliedProject.deleteappiled(member.user_id, @project.id) end end @@ -255,6 +256,8 @@ class MembersController < ApplicationController #课程成员删除修改 if @project if request.delete? && @member.deletable? + # 删除gitlab用户 + delete_trustie_user(@project.id,@member.user_id) @member.destroy # end user_admin = ProjectInfo.where("user_id = ? and project_id = ?", @member.user_id, @project.id)