summary refs log tree commit diff
path: root/dist/util/Permissions.js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/util/Permissions.js')
-rw-r--r--dist/util/Permissions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/util/Permissions.js b/dist/util/Permissions.js

index a62e8a8b..b3176221 100644 --- a/dist/util/Permissions.js +++ b/dist/util/Permissions.js
@@ -18,7 +18,7 @@ class Permissions extends BitField_1.BitField { return (checkAdmin && super.has(Permissions.FLAGS.ADMINISTRATOR)) || super.has(permission); } static channelPermission(overwrites, init) { - // channelOverwrites.filter((x) => x.type === 1 && x.id !== user.id); + // TODO: do not deny any permissions if admin return overwrites.reduce((permission, overwrite) => { // apply disallowed permission // * permission: current calculated permission (e.g. 010)