Merged in tbayen/idempiere/feature (pull request #69)

IDEMPIERE-655 Swing: No report without printformat window access
This commit is contained in:
Carlos Ruiz 2013-03-06 17:04:55 -05:00
commit 8fb0ec5076
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());