Skip to content
Browse files

MDL-33933 mod_forum: fix incorrect capability check

  • Loading branch information...
1 parent 9b112d7 commit 395354cfe049349882490250ea208c2551211ad2 @steelej steelej committed with danpoltawski
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/forum/lib.php
View
2 mod/forum/lib.php
@@ -5242,7 +5242,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 395354c

Please sign in to comment.
Something went wrong with that request. Please try again.