mirror of
https://github.com/discourse/discourse.git
synced 2025-06-08 00:27:32 +08:00
FEATURE: Add user update, anonymize and delete API scopes (#11335)
This commit is contained in:
@ -37,7 +37,10 @@ class ApiKeyScope < ActiveRecord::Base
|
|||||||
bookmarks: { actions: %w[users#bookmarks], params: %i[username] },
|
bookmarks: { actions: %w[users#bookmarks], params: %i[username] },
|
||||||
sync_sso: { actions: %w[admin/users#sync_sso], params: %i[sso sig] },
|
sync_sso: { actions: %w[admin/users#sync_sso], params: %i[sso sig] },
|
||||||
show: { actions: %w[users#show], params: %i[username external_id] },
|
show: { actions: %w[users#show], params: %i[username external_id] },
|
||||||
check_emails: { actions: %w[users#check_emails], params: %i[username] }
|
check_emails: { actions: %w[users#check_emails], params: %i[username] },
|
||||||
|
update: { actions: %w[users#update], params: %i[username] },
|
||||||
|
anonymize: { actions: %w[admin/users#anonymize] },
|
||||||
|
delete: { actions: %w[admin/users#destroy] },
|
||||||
},
|
},
|
||||||
email: {
|
email: {
|
||||||
receive_emails: { actions: %w[admin/email#handle_mail] }
|
receive_emails: { actions: %w[admin/email#handle_mail] }
|
||||||
|
@ -3752,6 +3752,9 @@ en:
|
|||||||
sync_sso: Synchronize a user using SSO.
|
sync_sso: Synchronize a user using SSO.
|
||||||
show: Obtain information about an user.
|
show: Obtain information about an user.
|
||||||
check_emails: List user emails.
|
check_emails: List user emails.
|
||||||
|
update: Update user profile information.
|
||||||
|
anonymize: Anonymize user accounts.
|
||||||
|
delete: Delete user accounts.
|
||||||
email:
|
email:
|
||||||
receive_emails: Combine this scope with the mail-receiver to process incoming emails.
|
receive_emails: Combine this scope with the mail-receiver to process incoming emails.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user