From fb989f1134578dab7de7584f8f52c797a0c80e41 Mon Sep 17 00:00:00 2001 From: tspc Date: Tue, 29 Jan 2008 00:55:47 +0000 Subject: [PATCH] BF[ 1878783 ] Cant seem to access any html window --- base/src/org/compiere/model/GridWindowVO.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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) {