MDL-21655 big scary enrolment and roles improvements - see tacker for list of changes, includes other minor fixes too
This commit is contained in:
@@ -353,7 +353,7 @@ function user_check_text_access($path, $itemtype, $this_id, $user, $group_id, $c
|
||||
$userrecord = $DB->get_record('user', array('id' => $this_id));
|
||||
|
||||
// we cannot see nothing from unconfirmed users
|
||||
if (!$userrecord->confirmed and !has_capability('moodle/site:doanything', get_context_instance(CONTEXT_SYSTEM))){
|
||||
if (!$userrecord->confirmed and !has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM))){
|
||||
if (!empty($CFG->search_access_debug)) echo "search reject : unconfirmed user ";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user