Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ription buttons as expected
  • Loading branch information...
commit 1c0d9b66775657ca7fe801ae59b5aa94c289a611 1 parent 8fee6c6
dwoolhead authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/forum/index.php
View
4 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);
Please sign in to comment.
Something went wrong with that request. Please try again.