Skip to content

Commit

Permalink
Merge pull request #10 from BreakOutEvent/feature/allow-to-set-other-…
Browse files Browse the repository at this point in the history
…rights

Feature/allow to set other rights
  • Loading branch information
nerdsupremacist authored Aug 26, 2019
2 parents e16aad5 + 7570b02 commit f543c2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "breakout-api-client",
"version": "0.17.2",
"version": "0.18.0",
"description": "A JS Api client for the breakout-backend",
"main": "src/BreakoutApi.js",
"directories": {
Expand Down
8 changes: 4 additions & 4 deletions src/BreakoutApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@ class BreakoutApi {
.then(resp => resp.data);
}

makeAdmin(userId) {
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);
}

removeAdmin(userId) {
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);
}

swapPasswords(userId) {
Expand Down

0 comments on commit f543c2e

Please sign in to comment.