Added permissions evaluation!

This commit is contained in:
hydrabolt
2015-10-03 22:50:46 +01:00
parent 8f4e6e34d5
commit c60fe26657
9 changed files with 313 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ var Channel = (function () {
for (var _iterator = data.permission_overwrites[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
var role = _step.value;
this.roles.push(new ChannelPermissions(role));
this.roles.push(new ChannelPermissions(role, this));
}
//this.isPrivate = isPrivate; //not sure about the implementation of this...