mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Add users:log_out API key scope (#11359)
This commit is contained in:
parent
97eae4e3ad
commit
f56c4b78da
@ -39,6 +39,7 @@ class ApiKeyScope < ActiveRecord::Base
|
|||||||
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] },
|
update: { actions: %w[users#update], params: %i[username] },
|
||||||
|
log_out: { actions: %w[admin/users#log_out] },
|
||||||
anonymize: { actions: %w[admin/users#anonymize] },
|
anonymize: { actions: %w[admin/users#anonymize] },
|
||||||
delete: { actions: %w[admin/users#destroy] },
|
delete: { actions: %w[admin/users#destroy] },
|
||||||
},
|
},
|
||||||
|
@ -3753,6 +3753,7 @@ en:
|
|||||||
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.
|
update: Update user profile information.
|
||||||
|
log_out: Log out all sessions for a user.
|
||||||
anonymize: Anonymize user accounts.
|
anonymize: Anonymize user accounts.
|
||||||
delete: Delete user accounts.
|
delete: Delete user accounts.
|
||||||
email:
|
email:
|
||||||
|
Loading…
Reference in New Issue
Block a user