From 17a20a596ab5680822563b2ce540bffe94a803dc Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Fri, 16 Nov 2018 10:14:39 -0500 Subject: [PATCH] PermListModel: Fix bug in creating permission set intersection. ObjClass.perms is now a frozenset, so it can't be updated. --- setoolsgui/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setoolsgui/models.py b/setoolsgui/models.py index 5045810..8cd0d3a 100644 --- a/setoolsgui/models.py +++ b/setoolsgui/models.py @@ -124,7 +124,7 @@ class PermListModel(SEToolsListModel): # create intersection for cls in classes: - cls_perms = cls.perms + cls_perms = set(cls.perms) with suppress(NoCommon): cls_perms.update(cls.common.perms)