Not that bad considering all the things they could implement, I actually don't consider this bad at all.
If having a beard is part of the image they want to project of themselves then I don't see anything wrong with that. It's their prerogative.
(It is pointless and unnecessary in my opinion, although it's obviously culturally/religiously derived, but as a foreigner I have no right to judge)
I'm sure foreign governments world-wide have requirements for how you physically present yourself too. Afghanistan also has this right.
This is one of the most harmless things and doesn't actually hurt anyone.