From af338cfa4c6c67dbb09dc09f9b0318a25fe4fd18 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 29 Jan 2024 18:53:06 +0100 Subject: [PATCH] fix --- ereuse_devicehub/resources/user/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/resources/user/models.py b/ereuse_devicehub/resources/user/models.py index 56d8d722..b675c43e 100644 --- a/ereuse_devicehub/resources/user/models.py +++ b/ereuse_devicehub/resources/user/models.py @@ -181,7 +181,7 @@ class User(UserMixin, Thing): return [] self.get_abac_did() - role = session.get('iota_abac_attributes', {}).get('role', []) + role = session.get('iota_abac_attributes', {}).get('role', '') return [(x.strip(), x.strip()) for x in role.split(",")] def _call_abac(self, path):