mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
NOBUG Fixed an obvious typo
This commit is contained in:
parent
0a91ee230f
commit
e30fabaec5
@ -3010,7 +3010,7 @@ class settings_navigation extends navigation_node {
|
||||
// Check that the user can view the profile
|
||||
$usercontext = get_context_instance(CONTEXT_USER, $user->id); // User context
|
||||
if ($course->id==SITEID) {
|
||||
if ($CFG->forceloginforprofiles && !!has_coursecontact_role($user->id) && !has_capability('moodle/user:viewdetails', $usercontext)) { // Reduce possibility of "browsing" userbase at site level
|
||||
if ($CFG->forceloginforprofiles && !has_coursecontact_role($user->id) && !has_capability('moodle/user:viewdetails', $usercontext)) { // Reduce possibility of "browsing" userbase at site level
|
||||
// Teachers can browse and be browsed at site level. If not forceloginforprofiles, allow access (bug #4366)
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user