Commit de61ebc8 authored by Rémy Coutable's avatar Rémy Coutable

Make Member#add_user set access_level for requesters

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