IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users / set new admin role with advanced permission - set zul path on dashboard content advanced

This commit is contained in:
Carlos Ruiz 2013-08-26 12:52:25 -05:00
parent 37a3918ec3
commit fad018241a
3 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- Aug 26, 2013 12:41:41 PM COT
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_DATE('2013-08-26 12:41:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56486
;
SELECT register_migration_script('201308261242_IDEMPIERE-1160.sql') FROM dual
;

View File

@ -0,0 +1,8 @@
-- Aug 26, 2013 12:41:41 PM COT
-- IDEMPIERE-1160 Hide potentially dangerous stuff from non-admin users
UPDATE AD_Field SET IsAdvancedField='Y',Updated=TO_TIMESTAMP('2013-08-26 12:41:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56486
;
SELECT register_migration_script('201308261242_IDEMPIERE-1160.sql') FROM dual
;

View File

@ -226,6 +226,7 @@ public final class MSetup
admin.setUserLevel(MRole.USERLEVEL_ClientPlusOrganization);
admin.setPreferenceType(MRole.PREFERENCETYPE_Client);
admin.setIsShowAcct(true);
admin.setIsAccessAdvanced(true);
if (!admin.save())
{
String err = "Admin Role A NOT inserted";
@ -252,6 +253,7 @@ public final class MSetup
MRole user = new MRole (m_ctx, 0, m_trx.getTrxName());
user.setClientOrg(m_client);
user.setName(name);
user.setIsAccessAdvanced(false);
if (!user.save())
{
String err = "User Role A NOT inserted";