Null roles fix

This commit is contained in:
abalabahaha
2016-05-13 20:14:01 -07:00
parent e7882a38ee
commit 81cdb09363
4 changed files with 6 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ var Server = (function (_Equality) {
var result = this.memberMap[user.id] || {};
if (result && result.roles) {
result.roles = result.roles.map(function (pid) {
return _this2.roles.get("id", pid);
return _this2.roles.get("id", pid) || pid;
});
}
return result;