Changing student role to view only access after course expiry

Changing student role to view only access after course expiry

by Cheryl Ayres -
Number of replies: 1

1) Our courses do not have expiry dates assigned to the assignment and quizzes. 

2) There is no guest access to any of our courses.

3) The Unenrollment process does not proviude us with the solution to our problem.

What we need to do is allow the student read only priviledges to the course after a set time.  This way they would not have access to submit anything after a specified time.

A custom variation of the guest would be perfect.

Is there any way to automate the conversion of student roles?

Cheryl

Average of ratings: -
In reply to Cheryl Ayres

Re: Changing student role to view only access after course expiry

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
No, there is not, but it would not be too hard to implement. Find out the code that currently does Unenrolment, and change it so that instead of just doing a role_unassign, it also does a role_assign of the new read-only role.