mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-21655 Fixing one missed has_coursemanager_role -> has_coursecontact_role
This commit is contained in:
parent
e30fabaec5
commit
1291a79fd7
@ -58,7 +58,7 @@ $context = $usercontext = get_context_instance(CONTEXT_USER, $userid, MUST_EXIST
|
||||
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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user