canSeeMedia
This commit is contained in:
parent
6a4daf8011
commit
82ef970e33
1 changed files with 1 additions and 1 deletions
|
@ -63,7 +63,7 @@ def parseCondition(condition, user):
|
||||||
if (not exclude and op == '=' or op in ('$', '^')) and v == '':
|
if (not exclude and op == '=' or op in ('$', '^')) and v == '':
|
||||||
return Q()
|
return Q()
|
||||||
elif k == 'filename' and (user.is_anonymous() or \
|
elif k == 'filename' and (user.is_anonymous() or \
|
||||||
not user.get_profile().capability('canSeeFiles')):
|
not user.get_profile().capability('canSeeMedia')):
|
||||||
return Q(id=0)
|
return Q(id=0)
|
||||||
elif k == 'oshash':
|
elif k == 'oshash':
|
||||||
return Q(files__oshash=v)
|
return Q(files__oshash=v)
|
||||||
|
|
Loading…
Reference in a new issue