mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Merge branch 'MDL-57362-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
d04310cb21
@ -3102,7 +3102,8 @@ class assign {
|
|||||||
}
|
}
|
||||||
// Checks for the edge case when user belongs to no groups and groupmode is sep.
|
// Checks for the edge case when user belongs to no groups and groupmode is sep.
|
||||||
if ($this->get_course_module()->effectivegroupmode == SEPARATEGROUPS) {
|
if ($this->get_course_module()->effectivegroupmode == SEPARATEGROUPS) {
|
||||||
$groupflag = !empty(groups_get_activity_allowed_groups($this->get_course_module()));
|
$groupflag = has_capability('moodle/site:accessallgroups', $this->get_context());
|
||||||
|
$groupflag = $groupflag || !empty(groups_get_activity_allowed_groups($this->get_course_module()));
|
||||||
return (bool)$groupflag;
|
return (bool)$groupflag;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user