mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Removed isteacher()
This commit is contained in:
parent
0019725320
commit
bd574b2a06
@ -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'));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user