mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Don't use isteacher()
This commit is contained in:
parent
fe5a1e23b3
commit
e7fea10028
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue