IDEMPIERE-1756 include also read-only records

This commit is contained in:
Carlos Ruiz 2016-02-17 16:20:28 +01:00
parent fdc607bb78
commit 80e519c760
1 changed files with 1 additions and 1 deletions

View File

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