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:
@@ -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) ) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user