Permalink
Browse files

The 'Activity is currently hidden' check in mod/forum/post.php incorr…

…ectly used 'manageactivities' capability instead of 'viewhiddenactivities', fixing.
  • Loading branch information...
1 parent abf7820 commit c03b88f6071b2d90dad1088750b62823039df294 sam_marshall committed Oct 26, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/post.php
View
@@ -345,7 +345,7 @@
}
if ($cm = get_coursemodule_from_instance("forum", $forum->id, $course->id)) {
- if (!$cm->visible and !has_capability('moodle/course:manageactivities', $coursecontext)) {
+ if (!$cm->visible and !has_capability('moodle/course:viewhiddenactivities', $coursecontext)) {
error(get_string("activityiscurrentlyhidden"));
}
}

0 comments on commit c03b88f

Please sign in to comment.