Skip to content

Prevent instructors acting as a student from changing the student's problem data. - #3274

Open
drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:fix-acting-issues
Open

drgrice1 wants to merge 1 commit into
openwebwork:developfrom
drgrice1:fix-acting-issues

Conversation

@drgrice1

@drgrice1 drgrice1 commented Nov 8, 2026

Copy link
Copy Markdown
Member

When acting as a student, using "Show Me Another" incremented the student's showMeAnotherCount. It is now only incremented for the user's own problem.

With periodic re-randomization enabled, the student's problem seed and prCount were saved on every page load, and the "Request New Version" button (also triggered by the enter key) was shown to instructors acting as a student, re-randomizing the student's problem. Now these are only saved and a new version can only be requested when acting as a student if the user has the record_answers_when_acting_as_student permission. In that case a "Request New Version for [student]" button is shown with the other buttons, and otherwise it is not shown. In either case the "Check Answers" button is available.

On the "Show Me Another" page, the "Request New Version" button is no longer shown since it would re-randomize the original problem. The "Show Past Answers" and "Email Instructor" buttons are also no longer shown since past answers are for the original problem, and the emailed link can not go to the version of the problem shown on that page.

…roblem data.

When acting as a student, using "Show Me Another" incremented the student's
`showMeAnotherCount`. It is now only incremented for the user's own problem.

With periodic re-randomization enabled, the student's problem seed and
`prCount` were saved on every page load, and the "Request New Version" button
(also triggered by the enter key) was shown to instructors acting as a student,
re-randomizing the student's problem. Now these are only saved and a new version
can only be requested when acting as a student if the user has the
`record_answers_when_acting_as_student` permission. In that case a "Request New
Version for [student]" button is shown with the other buttons, and otherwise it
is not shown. In either case the "Check Answers" button is available.

On the "Show Me Another" page, the "Request New Version" button is no longer
shown since it would re-randomize the original problem. The "Show Past Answers"
and "Email Instructor" buttons are also no longer shown since past answers are
for the original problem, and the emailed link can not go to the version of the
problem shown on that page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant