Security - Fix possible XSS attack vector using teacher role - reported by Javier Bloem