Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"FORUM/MDL-14860, hide unsubscribe link if users are not allowed to u…
…nsubscribe from this forum, merged from 1.9"
  • Loading branch information
dongsheng committed Feb 25, 2009
1 parent 7c9152b commit 730535c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.php
Expand Up @@ -188,7 +188,9 @@
if (!empty($USER->id)) {
$SESSION->fromdiscussion = $CFG->wwwroot;
if (forum_is_subscribed($USER->id, $newsforum)) {
$subtext = get_string('unsubscribe', 'forum');
if (!forum_is_forcesubscribed($newsforum)) {
$subtext = get_string('unsubscribe', 'forum');
}
} else {
$subtext = get_string('subscribe', 'forum');
}
Expand Down

0 comments on commit 730535c

Please sign in to comment.