From af9f83b08f143914237f09a786e4ae436e583d3f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 27 Feb 2015 11:45:24 +0530 Subject: [PATCH] fix canDelete state in menu --- static/js/mainMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/mainMenu.js b/static/js/mainMenu.js index a165652..fd73aea 100644 --- a/static/js/mainMenu.js +++ b/static/js/mainMenu.js @@ -586,7 +586,7 @@ oml.ui.mainMenu = function() { canCut = canCopy && listData.editable, canPaste = listData.editable && clipboardItems, canAdd = canCopy && clipboardItems && clipboardType == 'book', - canDelete = listData.user == username && selectionItems, + canDelete = listData.user == '' && selectionItems, historyItems = oml.history.items(), undoText = oml.history.undoText(), redoText = oml.history.redoText();