Thanks. I found out it was not a bug but the permissions issue. All good now.
Coming back to this thread to help Google if anyone finds this in the future: there is a capability Capabilities/mod/forum:viewqandawithoutposting which, if set to Allow for the students, will mean they always see the posts even when you are not expecting them to. Worth checking.