IDEMPIERE-655 Swing: No report without printformat window access

This commit is contained in:
Thomas Bayen 2013-02-22 14:30:33 +01:00
parent 555e234496
commit 98fd17dd52
1 changed files with 1 additions and 1 deletions

View File

@ -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());