else if ( !cp.isMember(pp.get_id()) || isPending )
{
if (isSysAdmin && skipInvite) // Can only skip invite if user is Admin
{
// Update community with new member
cp.addMember(pp, false); // Member status set to Active
cp.setNumberOfMembers(cp.getNumberOfMembers() + 1); // Increment number of members
/////////////////////////////////////////////////////////////////////////////////////////////////
// TODO (INF-1214): Make this code more robust to handle changes to the community that need to
// Caleb: this means change update to $set
/////////////////////////////////////////////////////////////////////////////////////////////////