about summary refs log tree commit diff
path: root/app/views/admin/accounts
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/accounts')
-rw-r--r--app/views/admin/accounts/show.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/admin/accounts/show.html.haml b/app/views/admin/accounts/show.html.haml
index 07dcc7f46..7609868e6 100644
--- a/app/views/admin/accounts/show.html.haml
+++ b/app/views/admin/accounts/show.html.haml
@@ -61,8 +61,9 @@
         = surround '(', ')' do
           = number_to_human_size @account.media_attachments.sum('file_file_size')
 
-%div{ style: 'float: right' }
-  = link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
+- if @account.local?
+  %div{ style: 'float: right' }
+    = link_to t('admin.accounts.reset_password'), admin_account_reset_path(@account.id), method: :create, class: 'button'
 
 %div{ style: 'float: left' }
   - if @account.silenced?