Skip to content
Permalink
Browse files

MDL-12226 forum index page not always displaying forum links or subsc…

…ription buttons as expected
  • Loading branch information
dwoolhead
dwoolhead committed Nov 16, 2007
1 parent 326cf96 commit 0c46637a1a6f258b31df63cf4eee8a3de541e551
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/index.php
@@ -172,7 +172,7 @@
$groupmode = NOGROUPS;
}
$currentgroup = groups_get_activity_group($cm);
$cantaccessagroup = $groupmode and !has_capability('moodle/site:accessallgroups', $context) and !mygroupid($course->id);
$cantaccessagroup = $groupmode && !has_capability('moodle/site:accessallgroups', $context) && !mygroupid($course->id);
// this is potentially wrong logic. could possibly check for if user has the right to hmmm
if ($groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context)) {
@@ -309,7 +309,7 @@
$groupmode = groups_get_activity_groupmode($cm);
$cantaccessagroup = $groupmode and !has_capability('moodle/site:accessallgroups', $context) and !mygroupid($course->id);
$cantaccessagroup = $groupmode && !has_capability('moodle/site:accessallgroups', $context) && !mygroupid($course->id);
if ($groupmode == SEPARATEGROUPS and !has_capability('moodle/site:accessallgroups', $context)) {
$count = count_records("forum_discussions", "forum", "$forum->id", "groupid", $currentgroup);

0 comments on commit 0c46637

Please sign in to comment.
You can’t perform that action at this time.