GM preference, it might even change between games because of how everything will interact.
For example, in some setups a doctor could be allowed to self target because they're the only protective role in game, while it might break another game if there was a bodyguard in it.