Permalink
Browse files

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

  • Loading branch information...
1 parent 7ba2b3a commit d5e739bc92c0a3bc3e615931ef49479cf9a1e269 stronk7 committed Nov 16, 2004
Showing with 5 additions and 0 deletions.
  1. +4 −0 mod/glossary/print.php
  2. +1 −0 mod/glossary/view.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) ) {
@@ -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);

0 comments on commit d5e739b

Please sign in to comment.