added updating roles

This commit is contained in:
hydrabolt
2015-10-26 13:29:01 +00:00
parent a3b2f9c2d4
commit 08ffd473e4
5 changed files with 113 additions and 49 deletions

View File

@@ -86,7 +86,7 @@ var Server = (function () {
var role = _ref3;
if (role.id === id) {
if (role.id == id) {
return role;
}
}
@@ -110,7 +110,6 @@ var Server = (function () {
var oldRole = this.getRole(data.id);
if (oldRole) {
var index = this.roles.indexOf(oldRole);
this.roles[index] = new ServerPermissions(data);