Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-33933 mod_forum: fix incorrect capability check

  • Loading branch information...
commit bda487868e7489475151f43c77c5e3b968256696 1 parent 2cbbf5d
@steelej steelej authored danpoltawski committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  mod/forum/lib.php
View
2  mod/forum/lib.php
@@ -5322,7 +5322,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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.