Print view isn't accesible if the activity is hidden.

Bug 1837
(http://moodle.org/bugs/bug.php?op=show&bugid=1837)

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7
2004-11-16 23:36:35 +00:00
parent 62067fe3ae
commit 2b99ea9efb
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -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) ) {
+1
View File
@@ -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);