From ff4e00095446e6085a763f86e5931022aaea47a3 Mon Sep 17 00:00:00 2001 From: j Date: Thu, 17 Nov 2016 16:09:09 +0200 Subject: [PATCH] check against item groups set --- pandora/item/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index bde8e3a5..2bdaf01e 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -241,7 +241,7 @@ def find(request, data): if request.user.profile.capability('canEditMetadata') or \ request.user.is_staff or \ item.get('user') == request.user.username or \ - item.get('groups', []) & groups: + set(item.get('groups', [])) & groups: return True return False