UI: Don't show 'everyone' group for query access (#59)

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
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 };
     });
   },
 

GitHub sha: 80ffc458

This commit appears in #59 which was approved by SamSaffron. It was merged by SamSaffron.