mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-21655 Fixing one missed has_coursemanager_role -> has_coursecontact_role
This commit is contained in:
parent
e30fabaec5
commit
1291a79fd7
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue