Permalink
Browse files

Merge branch 'wip-MDL-30273-master' of git://github.com/abgreeve/moodle

  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Nov 29, 2011
2 parents e343ff6 + 5a1038b commit 925ae958241e34192bf488a8bea53f05ab44fe92
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/forum/lib.php
View
@@ -4899,6 +4899,10 @@ function forum_user_can_post_discussion($forum, $currentgroup=null, $unused=-1,
if (!has_capability($capname, $context)) {
return false;
}
+
+ if ($forum->type == 'single') {
+ return false;
+ }
if ($forum->type == 'eachuser') {
if (forum_user_has_posted_discussion($forum->id, $USER->id)) {

0 comments on commit 925ae95

Please sign in to comment.