mirror of
https://github.com/moodle/moodle.git
synced 2025-01-22 08:11:26 +01:00
Remove the forum links as well (for group forums when user not in group)
This commit is contained in:
parent
a0b9571f7c
commit
c585ba8b14
@ -113,8 +113,9 @@
|
||||
if (forum_is_forcesubscribed($forum->id)) {
|
||||
$sublink = get_string("yes");
|
||||
} else {
|
||||
if ($groupmode = groupmode($course, $forum) and !isteacheredit($course->id) and !mygroupid($course->id)) {
|
||||
if (groupmode($course, $forum) and !isteacheredit($course->id) and !mygroupid($course->id)) {
|
||||
$sublink = get_string("no"); // Can't subscribe to a group forum (not in a group)
|
||||
$forumlink = $forum->name;
|
||||
} else {
|
||||
if (forum_is_subscribed($USER->id, $forum->id)) {
|
||||
$subscribed = get_string("yes");
|
||||
@ -151,8 +152,9 @@
|
||||
if (forum_is_forcesubscribed($forum->id)) {
|
||||
$sublink = get_string("yes");
|
||||
} else {
|
||||
if ($groupmode = groupmode($course, $forum) and !isteacheredit($course->id) and !mygroupid($course->id)) {
|
||||
if (groupmode($course, $forum) and !isteacheredit($course->id) and !mygroupid($course->id)) {
|
||||
$sublink = get_string("no"); // Can't subscribe to a group forum (not in a group)
|
||||
$forumlink = $forum->name;
|
||||
} else {
|
||||
if (forum_is_subscribed($USER->id, $forum->id)) {
|
||||
$subscribed = get_string("yes");
|
||||
|
Loading…
x
Reference in New Issue
Block a user