Patch #1694788 : add role checking

This commit is contained in:
armenrz 2007-04-05 05:59:38 +00:00
parent 61c2ca5231
commit 4f1d27f4b4
1 changed files with 3 additions and 1 deletions

View File

@ -490,7 +490,9 @@ public abstract class Info extends CDialog
no = -2;
}
log.fine("#" + no + " - " + (System.currentTimeMillis()-start) + "ms");
if (no > 1000)
//Armen: add role checking (Patch #1694788 )
MRole role = MRole.getDefault();
if (role.isQueryMax(no))
return ADialog.ask(p_WindowNo, this, "InfoHighRecordCount", String.valueOf(no));
return true;
} // testCount