]> git.mjollnir.org Git - moodle.git/commitdiff
Removed isteacher()
authorvyshane <vyshane>
Mon, 18 Sep 2006 05:29:42 +0000 (05:29 +0000)
committervyshane <vyshane>
Mon, 18 Sep 2006 05:29:42 +0000 (05:29 +0000)
user/tabs.php

index 742f11798d0b4fd0a43a29cf0bf1dcdcf89001d8..19cb78a53eeca44afb955496f1cc34c8774590f9 100644 (file)
@@ -34,9 +34,7 @@
         print_heading($site->fullname);
         
         if ($CFG->bloglevel >= 4) {
-            if (isteacher(SITEID) || 
-                ( $CFG->showsiteparticipants == 1
-                        && has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_SYSTEM, SITEID)) ) {
+            if (has_capability('moodle/course:viewparticipants', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
                 $toprow[] = new tabobject('participants', $CFG->wwwroot.'/user/index.php?id='.SITEID,
                     get_string('participants'));
             }