Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.8.2
-
Fix Version/s: None
-
Component/s: Enrolments
-
Labels:None
-
Affected Branches:MOODLE_18_STABLE
Description
Has casually found out, that after logtimenosee from a rate teachers are excluded. Is this option not for students?
One more strange effect: if the teacher then to include manually after start cron.php it will be again excluded.
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MDL-18507 | Longtimenosee even for Teachears... |
|
|
|
I think that I found solution for this issue. In file /admin/cron.php there is a function responsible for automatic unenrolling users. It is highlited in attached file crondotphp.gif. I think that all we need to do to solve this issue is to change function from line 247:
from:
if (role_unassign(0, $assign->userid, 0, $context->id)) {
to:
(role_unassign(0, $assign->userid, 0, $context->id)) {
One thing that I'm not sure is second part of that function which cleans remaining records. I don't know if there are changes needed according to modyfing function role_unassign().
Is my solution right?
Regards