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 '';
} }
@ -4784,4 +4784,4 @@ function page_doc_link($text='', $iconpath='') {
// vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140: // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140:
?> ?>