forked from 0x2620/pandora
merge
This commit is contained in:
commit
cb73c25301
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