MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
This commit is contained in:
+1
-1
@@ -74,7 +74,7 @@ if ($id) {
|
||||
|
||||
require_login($course->id, false, $cm);
|
||||
|
||||
if (!isloggedin() or has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), 0, false)) {
|
||||
if (isguestuser()) {
|
||||
redirect('view.php?d='.$data->id);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user