try {
    unless(isLoggedInUser, {
      code: 401,
      msg: 'Only authenticated users can resend an invitation'
    })(ctx);