IDEMPIERE-914 Any user can obtain all passwords via field editor - thanks to Anthony Sossah (xolali)

This commit is contained in:
Carlos Ruiz 2013-05-10 08:34:28 -05:00
parent 5a3e609189
commit 68e07a93b5
1 changed files with 6 additions and 3 deletions

View File

@ -139,9 +139,12 @@ public class WStringEditor extends WEditor implements ContextMenuListener
if (getComponent() instanceof Textbox)
((Textbox)getComponent()).setObscureType(obscureType);
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
addTextEditorMenu(popupMenu);
addChangeLogMenu(popupMenu);
if(!(this instanceof WPasswordEditor)){ // check password field
popupMenu = new WEditorPopupMenu(false, false, isShowPreference());
addTextEditorMenu(popupMenu);
addChangeLogMenu(popupMenu);
}
if (gridField.isAutocomplete()) {
Combobox combo = (Combobox)getComponent();