I think it should be allowed, and anyone could pray so long as they do it on thier own time.

But the idea of a whole class having prayer is a bad idea. Someone is bound to get offended somehow. Maybe if they allocated time for individual prayer for the students.