FIX: Hide publish_read_state option from non-admin users (#10148)

FIX: Hide publish_read_state option from non-admin users (#10148)

diff --git a/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs b/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
index 07cf33c..cad46c6 100644
--- a/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/groups-form-interaction-fields.hbs
@@ -62,15 +62,17 @@
   }}
 </div>
 
-<div class="control-group">
-  <label>
-    {{input type="checkbox"
-          checked=model.publish_read_state
-          class="groups-form-publish-read-state"}}
+{{#if currentUser.admin}}
+  <div class="control-group">
+    <label>
+      {{input type="checkbox"
+            checked=model.publish_read_state
+            class="groups-form-publish-read-state"}}
 
-    {{i18n "admin.groups.manage.interaction.publish_read_state"}}
-  </label>
-</div>
+      {{i18n "admin.groups.manage.interaction.publish_read_state"}}
+    </label>
+  </div>
+{{/if}}
 
 {{#if showEmailSettings}}
   <div class="control-group">

GitHub sha: 4db9f7bb

This commit appears in #10148 which was approved by eviltrout. It was merged by davidtaylorhq.