mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Adding group owners returns 400 error.
This commit is contained in:
@@ -85,9 +85,9 @@ const Group = RestModel.extend({
|
||||
|
||||
addOwners(usernames) {
|
||||
var self = this;
|
||||
return ajax('/admin/groups/' + this.get('id') + '/owners.json', {
|
||||
return ajax(`/admin/groups/${this.get('id')}/owners.json`, {
|
||||
type: "PUT",
|
||||
data: { usernames: usernames }
|
||||
data: { group: { usernames: usernames } }
|
||||
}).then(function() {
|
||||
self.findMembers();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user