IDEMPIERE-2015 Zoom disabled when access to window is read-only
This commit is contained in:
parent
7747fdac06
commit
224e163005
|
@ -123,7 +123,7 @@ public class WEditorPopupMenu extends Menupopup implements EventListener<Event>
|
||||||
int winID = lookup.getZoom();
|
int winID = lookup.getZoom();
|
||||||
int winIDPO = lookup.getZoom(false) ;
|
int winIDPO = lookup.getZoom(false) ;
|
||||||
Boolean canAccess = MRole.getDefault().getWindowAccess(winID);
|
Boolean canAccess = MRole.getDefault().getWindowAccess(winID);
|
||||||
if (winID <= 0 || canAccess == null || ! canAccess) {
|
if (winID <= 0 || canAccess == null) {
|
||||||
this.zoomEnabled = false;
|
this.zoomEnabled = false;
|
||||||
this.newEnabled = false;
|
this.newEnabled = false;
|
||||||
this.updateEnabled = false;
|
this.updateEnabled = false;
|
||||||
|
|
Loading…
Reference in New Issue