This is for branch 2.5.2
To Reproduce
- Create a homework set as a prof user, add some problems to it, then log out.
- Log in as another prof user, go to the homework set and then click "Try it" for any of the problems.
- Get an error like the screenshot here:

Workaround
Assigning the homework set to yourself fixes the issue.
Other Note
I brought this up on IRC a while ago, so not sure if a fix was actually committed and I'm just not finding it, previous discussions: