From bd574b2a065d3b7fdfa40f5a928d99f7d971de2a Mon Sep 17 00:00:00 2001 From: vyshane Date: Mon, 18 Sep 2006 05:29:42 +0000 Subject: [PATCH] Removed isteacher() --- user/tabs.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/user/tabs.php b/user/tabs.php index 742f11798d..19cb78a53e 100644 --- a/user/tabs.php +++ b/user/tabs.php @@ -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')); } -- 2.39.5