Commit d9ae2e6f authored by Valery Sizov's avatar Valery Sizov

Fix spec/features/groups/members/owner_manages_access_requests_spec.rb

parent 5e52fb51
......@@ -9,9 +9,9 @@ module MembershipActions
end
def approve_access_request
Members::ApproveAccessRequestService.new(membershipable, current_user, params).execute
member = Members::ApproveAccessRequestService.new(membershipable, current_user, params).execute
log_audit_event(@member, action: :create)
log_audit_event(member, action: :create)
redirect_to polymorphic_url([membershipable, :members])
end
......@@ -28,9 +28,9 @@ module MembershipActions
else
"You left the \"#{@member.source.human_name}\" #{source_type}."
end
log_audit_event(@member, action: :destroy) unless @member.request?
redirect_path = @member.request? ? @member.source : [:dashboard, @member.real_source_type.tableize]
redirect_to redirect_path, notice: notice
......
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