diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2020-09-11 20:56:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-11 20:56:35 +0200 |
commit | 4e4b3a0c8e69a724e229f028896ce774ef26df3b (patch) | |
tree | d5e7e22746d286998972b138dafa260a2482e532 /app/views/oauth | |
parent | e6b272e5c9c227cfbbe375a893f567c5967d669c (diff) |
Refactor settings controllers (#14767)
- Disallow suspended accounts from revoking sessions and apps - Allow suspended accounts to access exports
Diffstat (limited to 'app/views/oauth')
-rw-r--r-- | app/views/oauth/authorized_applications/index.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/oauth/authorized_applications/index.html.haml b/app/views/oauth/authorized_applications/index.html.haml index 7b77108a9..fbb733db4 100644 --- a/app/views/oauth/authorized_applications/index.html.haml +++ b/app/views/oauth/authorized_applications/index.html.haml @@ -20,5 +20,5 @@ %th!= application.scopes.map { |scope| t(scope, scope: [:doorkeeper, :scopes]) }.join(', ') %td= l application.created_at %td - - unless application.superapp? + - unless application.superapp? || current_account.suspended? = table_link_to 'times', t('doorkeeper.authorized_applications.buttons.revoke'), oauth_authorized_application_path(application), method: :delete, data: { confirm: t('doorkeeper.authorized_applications.confirmations.revoke') } |