]> cat aescling's git repositories - mastodon.git/commitdiff
Do not display "reset password" in admin UI for remote accounts (#1960)
authorEugen <eugen@zeonfederated.com>
Sun, 16 Apr 2017 21:15:58 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Sun, 16 Apr 2017 21:15:58 +0000 (23:15 +0200)
app/views/admin/accounts/show.html.haml

index 07dcc7f46a820d995acf91e65068cc165a38045e..7609868e60fc7b988063dfcf55152bb8063bc716 100644 (file)
@@ -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?