Or you could accept the situation for what it is: blind ignorance on the part of a leader. Then you can merrily do whatever's best for you without carrying around anger toward them.
Choosing to get offended is rarely a quick path to healthy productivity.
But it is correct to take offense about people in position who command about things they are weak in.