From 444e21b12d4a98768f839ecffd8d2e60ade44b64 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Fri, 16 Jul 2021 04:10:04 +0100 Subject: [PATCH] FEATURE: Add 'users.list' API scope (#13742) --- app/models/api_key_scope.rb | 1 + config/locales/client.en.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/app/models/api_key_scope.rb b/app/models/api_key_scope.rb index 2bf69db9f2f..f4cb44e2f8c 100644 --- a/app/models/api_key_scope.rb +++ b/app/models/api_key_scope.rb @@ -41,6 +41,7 @@ class ApiKeyScope < ActiveRecord::Base log_out: { actions: %w[admin/users#log_out] }, anonymize: { actions: %w[admin/users#anonymize] }, delete: { actions: %w[admin/users#destroy] }, + list: { actions: %w[admin/users#index] }, }, email: { receive_emails: { actions: %w[admin/email#handle_mail] } diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 0066ca2ee6f..81484815c42 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -4023,6 +4023,7 @@ en: log_out: Log out all sessions for a user. anonymize: Anonymize user accounts. delete: Delete user accounts. + list: Get a list of users. email: receive_emails: Combine this scope with the mail-receiver to process incoming emails.