forked from 0x2620/pandora
fix guests
This commit is contained in:
parent
c695e76a57
commit
08f547906b
1 changed files with 2 additions and 2 deletions
|
@ -45,8 +45,8 @@ def parseCondition(condition, user):
|
||||||
else:
|
else:
|
||||||
return q
|
return q
|
||||||
|
|
||||||
if k == 'filename' and user.is_anonymous() or \
|
if k == 'filename' and (user.is_anonymous() or \
|
||||||
not user.get_profile().capability('canSeeFiles'):
|
not user.get_profile().capability('canSeeFiles')):
|
||||||
return Q(id=0)
|
return Q(id=0)
|
||||||
|
|
||||||
key_type = settings.CONFIG['keys'].get(k, {'type':'string'}).get('type')
|
key_type = settings.CONFIG['keys'].get(k, {'type':'string'}).get('type')
|
||||||
|
|
Loading…
Reference in a new issue