Which version of Moodle? I remember a bug fix like this somewhat recently. It might be MDL-44894, but that is not very recent.
Quiz
Possible to see questions without access
This discussion has been locked so you can no longer reply to it.