mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 04:28:29 -05:00
FEATURE: Add API scopes for group endpoints (#20401)
Added two new api scopes for managing and administering groups. See https://meta.discourse.org/t/249710
This commit is contained in:
@@ -158,6 +158,21 @@ class ApiKeyScope < ActiveRecord::Base
|
||||
actions: %w[user_badges#destroy],
|
||||
},
|
||||
},
|
||||
groups: {
|
||||
manage_groups: {
|
||||
actions: %w[groups#members groups#add_members groups#remove_members],
|
||||
params: %i[id],
|
||||
},
|
||||
administer_groups: {
|
||||
actions: %w[
|
||||
admin/groups#create
|
||||
admin/groups#destroy
|
||||
groups#show
|
||||
groups#update
|
||||
groups#index
|
||||
],
|
||||
},
|
||||
},
|
||||
search: {
|
||||
show: {
|
||||
actions: %w[search#show],
|
||||
|
||||
Reference in New Issue
Block a user