Merge branch 'wip-MDL-30273-master' of git://github.com/abgreeve/moodle
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user