Don't use isteacher()

This commit is contained in:
moodler 2006-03-15 10:05:19 +00:00
parent fe5a1e23b3
commit e7fea10028

View file

@ -4759,7 +4759,7 @@ function print_tabs($tabrows, $selected=NULL, $inactive=NULL, $activetwo=NULL, $
function page_doc_link($text='', $iconpath='') { function page_doc_link($text='', $iconpath='') {
global $ME, $CFG; global $ME, $CFG;
if (empty($CFG->docroot) || !isteacher()) { if (empty($CFG->docroot) || !isteacherinanycourse()) {
return ''; return '';
} }