Permalink
Browse files

MDL-33933 mod_forum: fix incorrect capability check

  • Loading branch information...
1 parent a3ab18c commit b770f5363d15c6028e58995327a813b402f03a2a @steelej steelej committed with mackensen Sep 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
@@ -5379,7 +5379,7 @@ function forum_user_can_see_post($forum, $discussion, $post, $user=NULL, $cm=NUL
return (($userfirstpost !== false && (time() - $userfirstpost >= $CFG->maxeditingtime)) ||
$firstpost->id == $post->id || $post->userid == $user->id || $firstpost->userid == $user->id ||
- has_capability('mod/forum:viewqandawithoutposting', $modcontext, $user->id, false));
+ has_capability('mod/forum:viewqandawithoutposting', $modcontext, $user->id));
}
return true;
}

0 comments on commit b770f53

Please sign in to comment.