diff --git a/user/profile.php b/user/profile.php index 4c55951f067bb..aa439f3f55dd7 100644 --- a/user/profile.php +++ b/user/profile.php @@ -58,7 +58,7 @@ if (!$currentuser && !empty($CFG->forceloginforprofiles) && !has_capability('moodle/user:viewdetails', $context) && - !has_coursemanager_role($userid)) { + !has_coursecontact_role($userid)) { // Course managers can be browsed at site level. If not forceloginforprofiles, allow access (bug #4366) $struser = get_string('user'); $PAGE->set_title("$SITE->shortname: $struser");