forked from 0x2620/pandora
dont overwrite editable flag from backend
This commit is contained in:
parent
6b72d7b9e8
commit
7ad95d49e9
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue