canSeeMedia

This commit is contained in:
j 2013-05-31 13:47:11 +00:00
parent 6a4daf8011
commit 82ef970e33

View file

@ -63,7 +63,7 @@ def parseCondition(condition, user):
if (not exclude and op == '=' or op in ('$', '^')) and v == '':
return Q()
elif k == 'filename' and (user.is_anonymous() or \
not user.get_profile().capability('canSeeFiles')):
not user.get_profile().capability('canSeeMedia')):
return Q(id=0)
elif k == 'oshash':
return Q(files__oshash=v)