FIX: do not show invite button if local logins are disabled

This commit is contained in:
Arpit Jalan 2019-07-05 15:16:20 +05:30
parent f140c4d499
commit bd084b2147
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@
{{nav-item route='adminUsersList.show' routeParam='staged' label='admin.users.nav.staged'}}
{{nav-item route='groups' label='groups.index.title'}}
<div class="admin-actions">
{{#unless siteSettings.enable_sso}}
{{#if currentUser.can_invite_to_forum}}
{{d-button class="btn-default" action=(route-action "sendInvites") title="admin.invite.button_title" icon="user-plus" label="admin.invite.button_text"}}
{{/unless}}
{{/if}}
{{#if currentUser.admin}}
{{d-button class="btn-default" action=(route-action "exportUsers") title="admin.export_csv.button_title.user" icon="download" label="admin.export_csv.button_text"}}
{{/if}}