Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-21830 Prevent users from viewing names of all other site users - …

…only teachers with role assign see the full name of not enrolled users when trying to access the profile
  • Loading branch information...
commit 4597ce9ca5ca4f13bb75c3d8b117c2bf469745d0 1 parent 4bbeff3
Petr Škoda authored March 18, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  user/view.php
2  user/view.php
@@ -77,7 +77,7 @@
77 77
             }
78 78
 
79 79
             if (!has_capability('moodle/course:view', $coursecontext, $user->id, false)) {
80  
-                if (has_capability('moodle/course:view', $coursecontext)) {
  80
+                if (has_capability('moodle/role:assign', $coursecontext)) {
81 81
                     print_header("$strpersonalprofile: ", "$strpersonalprofile: ",
82 82
                                      "<a href=\"../course/view.php?id=$course->id\">$course->shortname</a> ->
83 83
                                   <a href=\"index.php?id=$course->id\">$strparticipants</a> -> $fullname",

0 notes on commit 4597ce9

Please sign in to comment.
Something went wrong with that request. Please try again.