diff --git a/lib/zin/wg/deliverable/js/v1.js b/lib/zin/wg/deliverable/js/v1.js index 2eb78d9b6f..10031c27bf 100644 --- a/lib/zin/wg/deliverable/js/v1.js +++ b/lib/zin/wg/deliverable/js/v1.js @@ -37,7 +37,7 @@ window.getDocActions = function(doc, deliverable) else { actions[0] = {icon: 'eye', key: 'view', url}; - actions[1] = {icon: 'edit', key: 'rename'}; + if(doc.canRename) actions[1] = {icon: 'edit', key: 'rename'}; actions[2] = {icon: 'trash', key: 'delete'}; } return actions; @@ -62,4 +62,4 @@ window.getDeliverableActions = function(deliverable, category) window.getTemplateMenu = function(item, category) { return {items: category.template || []}; -} \ No newline at end of file +}