FIX: Only TL4 users and staff should be able to see the disable slow mode button (#10942)

FIX: Only TL4 users and staff should be able to see the disable slow mode button (#10942)

diff --git a/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs b/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
index 8810399..c393ee7 100644
--- a/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
+++ b/app/assets/javascripts/discourse/app/templates/components/slow-mode-info.hbs
@@ -6,9 +6,11 @@
         {{i18n "topic.slow_mode_notice.duration" duration=durationText}}
       </span>
 
-      {{d-button class="slow-mode-remove"
-                 action=(action "disableSlowMode")
-                 icon="trash-alt"}}
+      {{#if user.canManageTopic}}
+        {{d-button class="slow-mode-remove"
+                  action=(action "disableSlowMode")
+                  icon="trash-alt"}}
+      {{/if}}
     </h3>
   </div>
 {{/if}}
\ No newline at end of file

GitHub sha: 1ff45dc1

This commit appears in #10942 which was approved by eviltrout. It was merged by romanrizzi.