We are not allowed to have our pictures taken when we are wearing our school uniforms.
この場合、次のような言い方ができますよ。
ーWe are not allowed to have our pictures taken when we are wearing our school uniforms.
「制服を着ている時に写真を撮られるのは禁止されているんです」
to have one's pictures taken で「写真を撮ってもらう・撮られる」
ご参考まで!