IDEMPIERE-597 Role Access Update is creating workflow access for other tenants workflows

This commit is contained in:
Carlos Ruiz 2013-01-29 11:08:09 -08:00
parent c1a0a80416
commit 274c49d329
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ BEGIN
|| r.ad_role_id || r.ad_role_id
|| ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID=' || ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID='
|| r.ad_role_id || r.ad_role_id
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN ' || ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE w.AD_Client_ID IN (0,'||r.ad_client_id||') AND wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|| roleaccesslevel; || roleaccesslevel;
-- DBMS_OUTPUT.PUT_LINE (sqlins); -- DBMS_OUTPUT.PUT_LINE (sqlins);

View File

@ -63,7 +63,7 @@ BEGIN
|| r.ad_role_id || r.ad_role_id
|| ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID=' || ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID='
|| r.ad_role_id || r.ad_role_id
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN ' || ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE w.AD_Client_ID IN (0,'||r.ad_client_id||') AND wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|| roleaccesslevel; || roleaccesslevel;
EXECUTE sqlins; EXECUTE sqlins;