Student Read Only role - Assignment issue

Student Read Only role - Assignment issue

Nosūtīja Nigel Robertson
Atbilžu skaits: 3

We have a role that we apply to students a few weeks after a course ends. The purpose is to allow the student to see any work that they have created but not to be able to change anything. The role is a copy of the Student role with some permissions changed. We are having difficulty getting assignments to behave as we want. To prevent students submitting an assignment or modifying one that was only at draft status, we have to set "Submit assignment -- mod/assign:submit" to Prohibit. But doing this then removes the student from any assignment meaning that no one can see any students listed at all in the assignment. The code isn't my area but it appears to be because the assignment display pulls users with mod/assign:submit permission.

Does anyone have suggestions of ways to make this work as we intend? (Particularly ones that don't involve big code hacks!)

TIA, Nigel

Vidējais novērtējums: -
Atbildot uz Nigel Robertson

Re: Student Read Only role - Assignment issue

Nosūtīja Tim Hunt
Core developers attēls Documentation writers attēls Particularly helpful Moodlers attēls Peer reviewers attēls Plugin developers attēls
We encountered this too. Once you remove the 'submit' capability, the student completely disappears from the assignment UI.

Years ago, in the quiz activity, we dealt with this by splitting the single capability mod/quiz:attempt (which used to control both attempting and reviewing quiz attempts) into separate mod/quiz:attempt (now just for making the attempt) and mod/quiz:reviewmyattempts (for seeing the review, which is therefore a read-only capability). The quiz reports include students with either capability.

Perhaps mod_assign needs to do something similar?
Atbildot uz Tim Hunt

Re: Student Read Only role - Assignment issue

Nosūtīja Nigel Robertson
Thanks Tim. It sounds like our developer had a similar idea over the weekend.
Do you think there would be any appetite at Moodle to develop a read-only that maintains the student context?
Atbildot uz Nigel Robertson

Re: Student Read Only role - Assignment issue

Nosūtīja Tim Hunt
Core developers attēls Documentation writers attēls Particularly helpful Moodlers attēls Peer reviewers attēls Plugin developers attēls
Yes, and think the change I suggested would be welcome if you developed a patch for Moodle core.