FEATURE: Add api scope for suspending users (#19965)

See: https://meta.discourse.org/t/request-separate-api-granular-api-scope-for-suspend-user/249928/5
This commit is contained in:
Blake Erickson 2023-01-23 16:20:49 -07:00 committed by GitHub
parent 774feb6614
commit a6291cd854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -101,6 +101,9 @@ class ApiKeyScope < ActiveRecord::Base
anonymize: {
actions: %w[admin/users#anonymize],
},
suspend: {
actions: %w[admin/users#suspend],
},
delete: {
actions: %w[admin/users#destroy],
},

View File

@ -4688,6 +4688,7 @@ en:
update: Update user profile information.
log_out: Log out all sessions for a user.
anonymize: Anonymize user accounts.
suspend: Suspend user accounts.
delete: Delete user accounts.
list: Get a list of users.
user_status: