From 80ffc4582f097ebdc0be426c78233f038a1eabcd Mon Sep 17 00:00:00 2001 From: Ricky Chon Date: Tue, 6 Oct 2020 21:56:51 -0400 Subject: [PATCH] UI: Don't show 'everyone' group for query access (#59) * Query access for 'everyone' does not work, but trust level 0 does, and it works the same --- .../discourse/controllers/admin-plugins-explorer.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 index 7a4e3e7..6e7103f 100644 --- a/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 +++ b/assets/javascripts/discourse/controllers/admin-plugins-explorer.js.es6 @@ -67,8 +67,8 @@ export default Ember.Controller.extend({ @computed("groups") groupOptions(groups) { - return groups.map((g) => { - return { id: g.id, name: g.name }; + return groups.filter(g => g.id !== 0).map(g => { + return { id: g.id.toString(), name: g.name }; }); },