添加删除项目成员时,同时对Gitlab项目成员进行同步操作
This commit is contained in:
parent
111f60b04a
commit
9b2bfcb2eb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue