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
@@ -28,7 +28,7 @@ define('MESSAGE_DEFAULT_REFRESH', 5);
|
||||
|
||||
require_login();
|
||||
|
||||
if (has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), 0, false)) {
|
||||
if (isguestuser()) {
|
||||
redirect($CFG->wwwroot);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user