1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Prevent export of encrypted items

This commit is contained in:
Laurent Cozic
2018-02-27 20:51:07 +00:00
parent 4046a51472
commit df4933fddd
2 changed files with 36 additions and 9 deletions

View File

@ -222,6 +222,8 @@ class InteropService {
continue;
}
if (item.encryption_applied || item.encryption_blob_encrypted) throw new Error(_('This item is currently encrypted: %s "%s". Please wait for all items to be decrypted and try again.', BaseModel.modelTypeToName(itemType), item.title ? item.title : item.id));
try {
if (itemType == BaseModel.TYPE_RESOURCE) {
const resourcePath = Resource.fullPath(item);