Security fix: ensure unauthorized users have no access to task output.

Before this fix, non-admins can visit /problems/x.json to see the
accepted answer for each task of the problem.