FIX: Adding group owners returns 400 error.
This commit is contained in:
parent
e43799134c
commit
1c80c233cf
|
@ -85,9 +85,9 @@ const Group = RestModel.extend({
|
||||||
|
|
||||||
addOwners(usernames) {
|
addOwners(usernames) {
|
||||||
var self = this;
|
var self = this;
|
||||||
return ajax('/admin/groups/' + this.get('id') + '/owners.json', {
|
return ajax(`/admin/groups/${this.get('id')}/owners.json`, {
|
||||||
type: "PUT",
|
type: "PUT",
|
||||||
data: { usernames: usernames }
|
data: { group: { usernames: usernames } }
|
||||||
}).then(function() {
|
}).then(function() {
|
||||||
self.findMembers();
|
self.findMembers();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue