From 603e231494cd7d93c5dfb867db8c35ba3eca764e Mon Sep 17 00:00:00 2001 From: Amish Shah Date: Sat, 13 Aug 2016 17:04:49 +0100 Subject: [PATCH] Fix implicit permissions in roles --- src/structures/ServerChannel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ServerChannel.js b/src/structures/ServerChannel.js index 2e7ee4f93..563058220 100644 --- a/src/structures/ServerChannel.js +++ b/src/structures/ServerChannel.js @@ -85,7 +85,7 @@ class ServerChannel extends Channel { permissions |= overwrite.allowData; } - const admin = Boolean(permissions & (Constants.PermissionFlags.MANAGE_ROLES)); + const admin = Boolean(permissions & (Constants.PermissionFlags.ADMINISTRATOR)); if (admin) { permissions = Constants.ALL_PERMISSIONS; }