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

This commit is contained in:
Roman Rizzi 2020-10-16 17:52:31 -03:00 committed by GitHub
parent 21c53ed249
commit 1ff45dc194
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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}}