FIX: Show "group members forbidden" message on mobile (#10370)

FIX: Show “group members forbidden” message on mobile (#10370)

This commit fixes an oversight in commit 88359b0f167a16b9eb59a9315ceefa84e4c7ec7c.

diff --git a/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs b/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
index 0df396b..21a02ab 100644
--- a/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
+++ b/app/assets/javascripts/discourse/app/templates/mobile/group-index.hbs
@@ -55,9 +55,13 @@
     {{/load-more}}
 
     {{conditional-loading-spinner condition=loading}}
-  {{else}}
+  {{else if model.can_see_members}}
     <br>
 
     <div>{{i18n "groups.empty.members"}}</div>
+  {{else}}
+    <br>
+
+    <div>{{i18n "groups.members.forbidden"}}</div>
   {{/if}}
 </section>

GitHub sha: 8850f51f

1 Like

This commit appears in #10370 which was merged by riking.