From 6b72d7b9e8fb3b0d03c0a3c4fa7ab098d80a40cf Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Wed, 8 Feb 2012 16:30:11 +0530 Subject: [PATCH] return layer editable flag --- pandora/annotation/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora/annotation/models.py b/pandora/annotation/models.py index 9a070a63..081dfd64 100644 --- a/pandora/annotation/models.py +++ b/pandora/annotation/models.py @@ -186,6 +186,8 @@ class Annotation(models.Model): 'volume': 'clip__volume', }.get(key, key)) j['duration'] = j['out'] - j['in'] + if user: + j['editable'] = self.editable(user) l = self.get_layer() if l['type'] == 'place':