mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Bug fixed when determining who can post into a forum when groups are used
This commit is contained in:
parent
196ca3fe59
commit
d591b40f51
1 changed files with 1 additions and 1 deletions
|
@ -1979,7 +1979,7 @@ function forum_user_can_post_discussion($forum, $currentgroup=false) {
|
||||||
} else if ($forum->type == "teacher") {
|
} else if ($forum->type == "teacher") {
|
||||||
return isteacher($forum->course);
|
return isteacher($forum->course);
|
||||||
} else if ($currentgroup) {
|
} else if ($currentgroup) {
|
||||||
return (isteacheredit($forum->course) or ismember($currentgroup));
|
return (isteacheredit($forum->course) or (ismember($currentgroup) and $forum->open == 2));
|
||||||
} else if (isteacher($forum->course)) {
|
} else if (isteacher($forum->course)) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue