Commit 60790cac authored by Rémy Coutable's avatar Rémy Coutable

Use the new Members::ApproveAccessRequestService in Member#add_user

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent ec0061a9
...@@ -103,7 +103,7 @@ class Member < ActiveRecord::Base ...@@ -103,7 +103,7 @@ class Member < ActiveRecord::Base
} }
if member.request? if member.request?
member.accept_request ::Members::ApproveAccessRequestService.new(source, current_user, id: member.id).execute
else else
member.save member.save
end end
......
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