Browse Source

permissions: fix inverted binary AND when removing a permission by value (#98)

pull/123/head
James Lu 7 years ago
parent
commit
9f5dd66969
  1. 2
      disco/types/permissions.py

2
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:

Loading…
Cancel
Save