diff --git a/base/src/org/compiere/model/GridWindowVO.java b/base/src/org/compiere/model/GridWindowVO.java index 49b38c3ff4..67326adf1c 100644 --- a/base/src/org/compiere/model/GridWindowVO.java +++ b/base/src/org/compiere/model/GridWindowVO.java @@ -150,9 +150,13 @@ public class GridWindowVO implements Serializable return null; } // Ensure ASP exceptions - MRole role = MRole.getDefault(ctx, false); - if (role.getWindowAccess(AD_Window_ID) == null) - vo = null; + MClient client = MClient.get(ctx); + if (client.isUseASP()) + { + MRole role = MRole.getDefault(ctx, false); + if (role.getWindowAccess(AD_Window_ID) == null) + vo = null; + } // Not found if (vo == null) {