Skip to content

Commit f543c2e

Browse files
Merge pull request #10 from BreakOutEvent/feature/allow-to-set-other-rights
Feature/allow to set other rights
2 parents e16aad5 + 7570b02 commit f543c2e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "breakout-api-client",
3-
"version": "0.17.2",
3+
"version": "0.18.0",
44
"description": "A JS Api client for the breakout-backend",
55
"main": "src/BreakoutApi.js",
66
"directories": {

Diff for: src/BreakoutApi.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,12 @@ class BreakoutApi {
505505
.then(resp => resp.data);
506506
}
507507

508-
makeAdmin(userId) {
509-
return this.instance.post(`/admin/user/${userId}/admin/`).then(resp => resp.data);
508+
makeAdmin(userId, authority) {
509+
return this.instance.post(`/admin/user/${userId}/admin/?authority=${authority}`).then(resp => resp.data);
510510
}
511511

512-
removeAdmin(userId) {
513-
return this.instance.delete(`/admin/user/${userId}/admin/`).then(resp => resp.data);
512+
removeAdmin(userId, authority) {
513+
return this.instance.delete(`/admin/user/${userId}/admin/?authority=${authority}`).then(resp => resp.data);
514514
}
515515

516516
swapPasswords(userId) {

0 commit comments

Comments
 (0)