mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
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:
parent
774feb6614
commit
a6291cd854
@ -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],
|
||||
},
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user