From 98fd17dd52e96b1a7ab5fdf03da60d09ceffa99c Mon Sep 17 00:00:00 2001 From: Thomas Bayen Date: Fri, 22 Feb 2013 14:30:33 +0100 Subject: [PATCH] IDEMPIERE-655 Swing: No report without printformat window access --- org.adempiere.ui.swing/src/org/compiere/print/Viewer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/print/Viewer.java b/org.adempiere.ui.swing/src/org/compiere/print/Viewer.java index 2f147d2184..c6eaaf50f5 100644 --- a/org.adempiere.ui.swing/src/org/compiere/print/Viewer.java +++ b/org.adempiere.ui.swing/src/org/compiere/print/Viewer.java @@ -467,7 +467,7 @@ public class Viewer extends CFrame } // IDEMPIERE-297 - Check for Table Access and Window Access for New Report if ( MRole.getDefault().isTableAccess(MPrintFormat.Table_ID, false) - && MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT)) + && (MRole.getDefault().getWindowAccess(WINDOW_PRINTFORMAT) == Boolean.TRUE)) { StringBuffer sb = new StringBuffer("** ").append(Msg.getMsg(m_ctx, "NewReport")).append(" **"); KeyNamePair pp = new KeyNamePair(-1, sb.toString());