From 9d60d383a031fd30c6efec4a3a6bbad28b6aef8a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Tue, 29 Jan 2008 04:29:06 +0000 Subject: [PATCH] Fix [ 1878783 ] Cant seem to access any html window --- base/src/org/compiere/model/GridWindowVO.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/base/src/org/compiere/model/GridWindowVO.java b/base/src/org/compiere/model/GridWindowVO.java index 67326adf1c..1f7c3e6372 100644 --- a/base/src/org/compiere/model/GridWindowVO.java +++ b/base/src/org/compiere/model/GridWindowVO.java @@ -150,17 +150,12 @@ public class GridWindowVO implements Serializable return null; } // Ensure ASP exceptions - 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 + MRole role = MRole.getDefault(ctx, false); + if (role.getWindowAccess(vo.AD_Window_ID) == null) + vo = null; // Not found if (vo == null) { - CLogger.get().log(Level.SEVERE, "No Window - AD_Window_ID=" + AD_Window_ID + CLogger.get().log(Level.SEVERE, "No Window - AD_Window_ID=" + vo.AD_Window_ID + ", AD_Role_ID=" + AD_Role_ID + " - " + sql); CLogger.get().saveError("AccessTableNoView", "(Not found)"); return null;