From 08f547906beaeaf89a4b67ab529784461da600c0 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 31 Oct 2011 17:24:20 +0100 Subject: [PATCH] fix guests --- pandora/item/managers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/managers.py b/pandora/item/managers.py index cb02745d0..67f9251af 100644 --- a/pandora/item/managers.py +++ b/pandora/item/managers.py @@ -45,8 +45,8 @@ def parseCondition(condition, user): else: return q - if k == 'filename' and user.is_anonymous() or \ - not user.get_profile().capability('canSeeFiles'): + if k == 'filename' and (user.is_anonymous() or \ + not user.get_profile().capability('canSeeFiles')): return Q(id=0) key_type = settings.CONFIG['keys'].get(k, {'type':'string'}).get('type')