From 2703617179b83a9aa82a66fbabb18bed71f58559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 12 May 2017 13:40:34 +0200 Subject: [PATCH] Added 'groups' property to UserClass This property was created by _load_user(), but never had a default value set in UserClass.__init__(). --- pillar/auth/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pillar/auth/__init__.py b/pillar/auth/__init__.py index cc571437..45aad8a9 100644 --- a/pillar/auth/__init__.py +++ b/pillar/auth/__init__.py @@ -23,6 +23,7 @@ class UserClass(flask_login.UserMixin): self.gravatar: str = None self.email: str = None self.roles: typing.List[str] = [] + self.groups: typing.List[str] = [] def has_role(self, *roles): """Returns True iff the user has one or more of the given roles."""