diff --git a/base/src/org/compiere/model/MAttachment.java b/base/src/org/compiere/model/MAttachment.java index fd68a85f97..698c1f74de 100644 --- a/base/src/org/compiere/model/MAttachment.java +++ b/base/src/org/compiere/model/MAttachment.java @@ -895,7 +895,7 @@ public class MAttachment extends X_AD_Attachment log.warning("No File"); return false; } - if (!file.exists() || file.isDirectory()) + if (!file.exists() || file.isDirectory() || !file.canRead()) { log.warning("not added - " + file + ", Exists=" + file.exists() + ", Directory=" + file.isDirectory());