mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Removed deprecated forum type teacher.
This commit is contained in:
parent
d604bdeaed
commit
45c38eef4c
@ -141,14 +141,8 @@
|
||||
/// Also, if we know they should be able to reply, then explicitly set $canreply
|
||||
|
||||
$canreply = NULL; /// No override one way or the other
|
||||
|
||||
if ($forum->type == "teacher") {
|
||||
$groupmode = NOGROUPS;
|
||||
} else {
|
||||
$groupmode = groupmode($course, $cm);
|
||||
}
|
||||
|
||||
|
||||
$groupmode = groupmode($course, $cm);
|
||||
|
||||
|
||||
if ($groupmode and !has_capability('moodle/site:accessallgroups', $modcontext)) { // Groups must be kept separate
|
||||
//change this to ismember
|
||||
|
@ -82,14 +82,7 @@
|
||||
}
|
||||
|
||||
|
||||
/// Check to see if groups are being used in this forum
|
||||
/// and if so, set $currentgroup to reflect the current group
|
||||
|
||||
if ($forum->type == "teacher") {
|
||||
$groupmode = NOGROUPS;
|
||||
} else {
|
||||
$groupmode = groupmode($course, $cm); // Groups are being used
|
||||
}
|
||||
$groupmode = groupmode($course, $cm);
|
||||
|
||||
$currentgroup = get_and_set_current_group($course, $groupmode, $changegroup);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user