diff --git a/org.adempiere.base/src/org/compiere/model/PO.java b/org.adempiere.base/src/org/compiere/model/PO.java index 46e9ee1a75..7e08c57cd3 100644 --- a/org.adempiere.base/src/org/compiere/model/PO.java +++ b/org.adempiere.base/src/org/compiere/model/PO.java @@ -2876,6 +2876,15 @@ public abstract class PO } // processed } // force + // Carlos Ruiz - globalqss - IDEMPIERE-111 + // Check if the role has access to this client + if (!MRole.getDefault().isClientAccess(getAD_Client_ID(), true)) + { + log.warning("You cannot delete this record, role doesn't have access"); + log.saveError("AccessCannotDelete", "", false); + return false; + } + Trx localTrx = null; boolean success = false; try