I am not sure but I think if you are not eligible to be President then I think the succession just skips over to the next person in line. So one could be in the Cabinet even though not eligible. A prime example would be Henry Kissinger.
I think you are right. My bad. I guess I'm the dumbass for today.