Replacing spree_current_user with local variable recipient in function notify_event of lib/affiliate_credits.rb