FIX: consistency to show mute/ignore menu in user profile

Show the mute/ignore menu for another user even when the current user
cannot message them.
This commit is contained in:
Jeff Wong 2020-03-17 11:19:26 -07:00
parent 919e405c48
commit 8e6be1c353

View File

@ -58,15 +58,15 @@
icon="envelope" icon="envelope"
label="user.private_message"}} label="user.private_message"}}
</li> </li>
{{#if canMuteOrIgnoreUser}} {{/if}}
<li> {{#if canMuteOrIgnoreUser}}
{{user-notifications-dropdown <li>
{{user-notifications-dropdown
user=model user=model
value=userNotificationLevel value=userNotificationLevel
updateNotificationLevel=(action "updateNotificationLevel") updateNotificationLevel=(action "updateNotificationLevel")
}} }}
</li> </li>
{{/if}}
{{/if}} {{/if}}
{{#if currentUser.staff}} {{#if currentUser.staff}}
<li><a href={{model.adminPath}} class="btn btn-default">{{d-icon "wrench"}}{{i18n 'admin.user.show_admin_profile'}}</a></li> <li><a href={{model.adminPath}} class="btn btn-default">{{d-icon "wrench"}}{{i18n 'admin.user.show_admin_profile'}}</a></li>