IDEMPIERE-2804 Copy role process : using same roles in param

This commit is contained in:
Nicolas Micoud 2015-09-20 22:24:01 +02:00
parent ae020c5667
commit 632c4c6e2d
1 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,9 @@ public class CopyRole extends SvrProcess
throw new AdempiereException(Msg.getMsg(getCtx(), "CannotAccessProcess", new Object[] {getProcessInfo().getAD_Process_ID(), MRole.getDefault().getName()})); throw new AdempiereException(Msg.getMsg(getCtx(), "CannotAccessProcess", new Object[] {getProcessInfo().getAD_Process_ID(), MRole.getDefault().getName()}));
} }
if (m_AD_Role_ID_From == m_AD_Role_ID_To)
throw new AdempiereException("Roles must be different");
String[] tables = new String[] {"AD_Window_Access", "AD_Process_Access", "AD_Form_Access", String[] tables = new String[] {"AD_Window_Access", "AD_Process_Access", "AD_Form_Access",
"AD_Workflow_Access", "AD_Task_Access", "AD_Document_Action_Access", "AD_InfoWindow_Access", "AD_Workflow_Access", "AD_Task_Access", "AD_Document_Action_Access", "AD_InfoWindow_Access",
I_AD_Role_Included.Table_Name I_AD_Role_Included.Table_Name