diff --git a/src/DataToTable.js b/src/DataToTable.js index 5fc7b1e..2099ee6 100644 --- a/src/DataToTable.js +++ b/src/DataToTable.js @@ -66,7 +66,7 @@ const tableType = // here we declare all the type of table we wish to display 'Default': 'Member', }, 'Deactivated': { - 'name': 'is_deactivate', + 'name': 'is_deactivated', 'type': 'boolean', }, }, diff --git a/src/UserRightPanel.js b/src/UserRightPanel.js index 411a803..48e51d4 100644 --- a/src/UserRightPanel.js +++ b/src/UserRightPanel.js @@ -106,7 +106,7 @@ export default class UserRightPanel extends Component { const userRequest = await fetch(homeServer+ '_matrix/client/r0/watchaupdatomember/'+ encodeURIComponent(this.props.data['User Id']['data']), { - method: 'POST', + method: 'PUT', headers: { 'Authorization': 'Bearer '+ accessToken, 'Accept': 'application/json',