Merge pull request #2897 from dpalou/MOBILE-3785
MOBILE-3785 groups: Always allow selecting all parts if visible groupsmain
commit
f85ef7f376
|
@ -172,8 +172,7 @@ export class CoreGroupsProvider {
|
||||||
groupInfo.visibleGroups = false;
|
groupInfo.visibleGroups = false;
|
||||||
groupInfo.defaultGroupId = 0;
|
groupInfo.defaultGroupId = 0;
|
||||||
} else {
|
} else {
|
||||||
// The "canaccessallgroups" field was added in 3.4. Add all participants for visible groups in previous versions.
|
if (result.canaccessallgroups || groupInfo.visibleGroups) {
|
||||||
if (result.canaccessallgroups || (typeof result.canaccessallgroups == 'undefined' && groupInfo.visibleGroups)) {
|
|
||||||
groupInfo.groups!.push({ id: 0, name: Translate.instant('core.allparticipants') });
|
groupInfo.groups!.push({ id: 0, name: Translate.instant('core.allparticipants') });
|
||||||
groupInfo.defaultGroupId = 0;
|
groupInfo.defaultGroupId = 0;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue