You can easily judge the character of a man by how he treats those who can do nothing for him. Johann Wolfgang von Goethe
What this quote means is that a person shows their true self when they are interacting with people who cannot help them in any way. There are those who are very cordial to those who can help them, then impatient and nasty to those who can’t do anything for them. That is their true character.