We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16aad5 commit b1c6726Copy full SHA for b1c6726
src/BreakoutApi.js
@@ -505,12 +505,12 @@ class BreakoutApi {
505
.then(resp => resp.data);
506
}
507
508
- makeAdmin(userId) {
509
- return this.instance.post(`/admin/user/${userId}/admin/`).then(resp => resp.data);
+ makeAdmin(userId, authority) {
+ return this.instance.post(`/admin/user/${userId}/admin/?authority=${authority}`).then(resp => resp.data);
510
511
512
- removeAdmin(userId) {
513
- return this.instance.delete(`/admin/user/${userId}/admin/`).then(resp => resp.data);
+ removeAdmin(userId, authority) {
+ return this.instance.delete(`/admin/user/${userId}/admin/?authority=${authority}`).then(resp => resp.data);
514
515
516
swapPasswords(userId) {
0 commit comments