This commit is contained in:
rolux 2011-10-31 16:46:13 +00:00
commit cb73c25301

View file

@ -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')