mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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:
@@ -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],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user