diff --git a/mod/glossary/print.php b/mod/glossary/print.php index 41824631ca1..326120cedd8 100644 --- a/mod/glossary/print.php +++ b/mod/glossary/print.php @@ -41,6 +41,10 @@ require_course_login($course); + if (!$cm->visible and !isteacher($course->id)) { + notice(get_string("activityiscurrentlyhidden")); + } + /// setting the default values for the display mode of the current glossary /// only if the glossary is viewed by the first time if ( $dp = get_record('glossary_formats','name', $glossary->displayformat) ) { diff --git a/mod/glossary/view.php b/mod/glossary/view.php index 24999275658..b7496ec415f 100644 --- a/mod/glossary/view.php +++ b/mod/glossary/view.php @@ -111,6 +111,7 @@ require_login($course->id); } if (!$cm->visible and !isteacher($course->id)) { + print_header(); notice(get_string("activityiscurrentlyhidden")); } add_to_log($course->id, "glossary", "view", "view.php?id=$cm->id&tab=$tab", $glossary->id, $cm->id);