Permalink
Browse files

Merge branch 'wip-MDL-30273-MOODLE_20_STABLE' of git://github.com/abg…

…reeve/moodle into MOODLE_20_STABLE
  • Loading branch information...
2 parents d8c7d09 + 23e7302 commit 7231e48c27af1e92c497f4752dfe8a6c650c7fa0 Sam Hemelryk committed Nov 29, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/forum/lib.php
View
@@ -4827,6 +4827,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 7231e48

Please sign in to comment.