began to work on update listening

This commit is contained in:
hydrabolt
2015-10-03 23:40:29 +01:00
parent 0b020f9264
commit aed7d3c1c2
4 changed files with 36 additions and 5 deletions

View File

@@ -122,7 +122,18 @@ var Server = (function () {
}
}, {
key: "updateRole",
value: function updateRole() {}
value: function updateRole(data) {
var oldRole = this.getRole(data.id);
if (oldRole) {
oldRole.packed = data.permissions;
oldRole.name = data.name;
} else {
return false;
}
}
}, {
key: "removeRole",
value: function removeRole(id) {