Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Allow students to always see editing teachers in their course

  • Loading branch information...
commit b65fdd3b54748c28ff58936d213e970e3cf623a4 1 parent 6478428
authored

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
@@ -43,7 +43,7 @@
43 43
     if (groupmode($course) == SEPARATEGROUPS and !isteacheredit($course->id)) {   // Groups must be kept separate
44 44
         require_login();
45 45
 
46  
-        if (!ismember(mygroupid($course->id), $user->id)) {
  46
+        if (!isteacheredit($course->id, $user->id) and !ismember(mygroupid($course->id), $user->id)) {
47 47
             print_header("$personalprofile: ", "$personalprofile: ",
48 48
                          "<a href=\"../course/view.php?id=$course->id\">$course->shortname</a> ->
49 49
                           <a href=\"index.php?id=$course->id\">$participants</a>",

0 notes on commit b65fdd3

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