Permalink
Browse files

Merge branch 'em_MDL-26476_20_grp' of git://github.com/skodak/moodle

  • Loading branch information...
2 parents 3b3e2ce + 12923c9 commit f5c452a3b342be92fd39aee6d56d44e4e2c82ec8 @stronk7 stronk7 committed Feb 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/modinfolib.php
View
@@ -906,8 +906,8 @@ private function update_user_visible() {
} else if (!empty($CFG->enablegroupmembersonly) and !empty($this->groupmembersonly)
and !has_capability('moodle/site:accessallgroups', $modcontext, $userid)) {
// If the activity has 'group members only' and you don't have accessallgroups...
- $groups = $this->modinfo->get_groups();
- if (empty($this->groups[$this->groupingid])) {
+ $groups = $this->modinfo->get_groups($this->groupingid);
+ if (empty($groups)) {
// ...and you don't belong to a group, then set it so you can't see/access it
$this->uservisible = false;
}

0 comments on commit f5c452a

Please sign in to comment.