return private clips in smart edits, fixes #2393

This commit is contained in:
j 2014-06-06 11:38:03 +00:00
parent 769472a056
commit df84cf1aa7

View file

@ -205,7 +205,7 @@ class Edit(models.Model):
return clips
def get_clips_json(self, user=None):
qs = self.get_clips()
qs = self.get_clips(user)
if self.type == 'static':
clips = [c.json(user) for c in qs.order_by('index')]
else:
@ -323,7 +323,7 @@ class Edit(models.Model):
if key == 'id':
response[key] = self.get_id()
elif key == 'items':
response[key] = self.get_clips().count()
response[key] = self.get_clips(user).count()
elif key == 'query':
if not self.query.get('static', False):
response[key] = self.query