]> git.mjollnir.org Git - moodle.git/commitdiff
Merged user tab visibility from stable
authormoodler <moodler>
Mon, 19 Jun 2006 13:52:39 +0000 (13:52 +0000)
committermoodler <moodler>
Mon, 19 Jun 2006 13:52:39 +0000 (13:52 +0000)
user/tabs.php

index 4b2ef6f818ce87f82a6e298df5b0fd00f63756e3..52bb10e04c5a694485a28c1ebe1edb961ed9df65 100644 (file)
         print_heading($site->fullname);
         
         if ($CFG->bloglevel >= 4) {
-            $toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID,
-                get_string('participants'));
+            if (isteacher(SITEID) || 
+                ($CFG->showsiteparticipants == 1 && isteacherinanycourse()) || 
+                ($CFG->showsiteparticipantslist == 2)) {
+                $toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID,
+                    get_string('participants'));
+            }
 
             $toprow[] = new tabobject('blogs', $CFG->wwwroot.'/blog/index.php?filtertype=site&amp;',
                 get_string('blogs','blog'));