FIX: prevents everyone group to show as group option for polls (#8957)
This commit is contained in:
parent
ce588006e3
commit
2c7d32e783
|
@ -87,9 +87,14 @@ export default Controller.extend({
|
||||||
|
|
||||||
@discourseComputed("site.groups")
|
@discourseComputed("site.groups")
|
||||||
siteGroups(groups) {
|
siteGroups(groups) {
|
||||||
return groups.map(g => {
|
return groups
|
||||||
return { name: g.name, value: g.name };
|
.map(g => {
|
||||||
});
|
// prevents group "everyone" to be listed
|
||||||
|
if (g.id !== 0) {
|
||||||
|
return { name: g.name, value: g.name };
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.filter(Boolean);
|
||||||
},
|
},
|
||||||
|
|
||||||
@discourseComputed("pollType", "regularPollType")
|
@discourseComputed("pollType", "regularPollType")
|
||||||
|
|
Loading…
Reference in New Issue