From 9f5dd669697ff82becf8aa72f8393b3f9310aec1 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 11 Feb 2019 23:01:23 -0800 Subject: [PATCH] permissions: fix inverted binary AND when removing a permission by value (#98) --- disco/types/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/types/permissions.py b/disco/types/permissions.py index 6157bd9..d11b08f 100644 --- a/disco/types/permissions.py +++ b/disco/types/permissions.py @@ -66,7 +66,7 @@ class PermissionValue(object): if isinstance(other, PermissionValue): self.value &= ~other.value elif isinstance(other, int): - self.value &= other + self.value &= ~other elif isinstance(other, EnumAttr): setattr(self, other.name, False) else: