From 45f7ca3daa07b55cc23c46a016f36a3b8d9480af Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 25 Apr 2008 22:54:10 +0000 Subject: [PATCH] Implement [ 1951970 ] Allow generation of migration scripts for clients --- client/src/org/compiere/apps/Preference.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/Preference.java b/client/src/org/compiere/apps/Preference.java index a98cd2b8e8..2dde4686d2 100644 --- a/client/src/org/compiere/apps/Preference.java +++ b/client/src/org/compiere/apps/Preference.java @@ -435,8 +435,11 @@ public final class Preference extends CDialog { adempiereSys.setSelected(false); adempiereSys.setEnabled(false); - logMigrationScript.setSelected(false); - logMigrationScript.setEnabled(false); + if (Env.getAD_User_ID(Env.getCtx()) > 100) { + // disable log migration scripts on clients non-GW for non-SuperUser + logMigrationScript.setSelected(false); + logMigrationScript.setEnabled(false); + } } // AutoLogin autoLogin.setSelected(Ini.isPropertyBool(Ini.P_A_LOGIN));