IDEMPIERE-1756:some case recent item don't work

case same user but use difference role
This commit is contained in:
hieplq 2016-01-10 10:52:54 +07:00
parent 62fa6b90ef
commit fdc607bb78
1 changed files with 3 additions and 0 deletions

View File

@ -230,6 +230,9 @@ public class DPRecentItems extends DashboardPanel implements EventListener<Event
for (MRecentItem ri : ris) { for (MRecentItem ri : ris) {
if (ri.getAD_Window_ID() > 0 && MRole.getDefault().getWindowAccess(ri.getAD_Window_ID()) == null) if (ri.getAD_Window_ID() > 0 && MRole.getDefault().getWindowAccess(ri.getAD_Window_ID()) == null)
continue; continue;
if (ri.getAD_Window_ID() > 0 && !MRole.getDefault().isRecordAccess(ri.getAD_Table_ID(), ri.getRecord_ID(), false))
continue;
String label = ri.getLabel(); String label = ri.getLabel();
if (label == null) if (label == null)
continue; continue;