forked from 0x2620/pandora
if user can edit metadata of item, should also be able to add annotations for that item. independent of canAddAnnotations rights
This commit is contained in:
parent
157cc7478b
commit
166b566fde
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@ pandora.ui.editor = function(data) {
|
|||
|
||||
var ui = pandora.user.ui,
|
||||
rightsLevel = data.rightslevel,
|
||||
canEdit = pandora.hasCapability('canEditMetadata') || data.editable,
|
||||
|
||||
that = Ox.VideoAnnotationPanel({
|
||||
annotationsCalendarSize: ui.annotationsCalendarSize,
|
||||
|
@ -44,7 +45,7 @@ pandora.ui.editor = function(data) {
|
|||
itemName: pandora.site.itemName,
|
||||
layers: data.annotations.map(function(layer) {
|
||||
return Ox.extend({
|
||||
editable: layer.canAddAnnotations[pandora.user.level]
|
||||
editable: layer.canAddAnnotations[pandora.user.level] || canEdit
|
||||
}, layer, {
|
||||
autocomplete: layer.type == 'entity'
|
||||
? function(key, value, callback) {
|
||||
|
|
Loading…
Reference in a new issue