The noun after the verb is to be in nominative case and not in accusative.
I think you mean this to be true in the case of a pronoun after a linking verb only. Taking your "rule" literally, we must have
They invited we.
because the pronoun is after the verb, the conditions under which...