dont overwrite editable flag from backend

This commit is contained in:
j 2012-02-08 16:36:20 +05:30
parent 6b72d7b9e8
commit 7ad95d49e9

View file

@ -804,8 +804,9 @@ pandora.getVideoOptions = function(data) {
options.layers[i] = Ox.extend({}, layer, { options.layers[i] = Ox.extend({}, layer, {
items: data.layers[layer.id].map(function(annotation) { items: data.layers[layer.id].map(function(annotation) {
annotation.duration = annotation.out - annotation['in']; annotation.duration = annotation.out - annotation['in'];
annotation.editable = annotation.user == pandora.user.username || annotation.editable = annotation.editable
pandora.site.capabilities['canEditAnnotations'][pandora.user.level]; || annotation.user == pandora.user.username
|| pandora.site.capabilities['canEditAnnotations'][pandora.user.level];
return annotation; return annotation;
}) })
}); });