[Erp5-dev] Proxy role not working for workflow transitions?

Jean-Paul Smets jp at nexedi.com
Mon Mar 12 08:19:35 CET 2007


Probably the famous feature of DCWorkflow. if you access the object as 
sci.object you will get security issues. If you access this object as 
sci['object'], everything should go fine.
JPS.


Le samedi 10 mars 2007 15:16, Jacek Medrzycki a écrit :
> hi
>
> I have a transition  - reject_action, which requires Manager role to
> launch.
>
> I have another transition - employ_action (available to Assignor) -
> which triggers employ transition, which in turn triggers script (after).
> This script does something and at the end launches reject_action on some
> other objects. This script has proxy role of Manager.
> However, when the user with role of Assignor tries to launch
> employ_action, the script fails to launch reject_action on related
> object. Of course, this action is available on the object and Manager
> can launch it "by hand".
>
> When I change the role on reject_action from Manager to Assignor, the
> scripts works well. It looks like the proxy role does not apply to
> workflow transition attempt.
>
> Should it work like that?
>
> Jacek
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://erp5.org/mailman/listinfo/erp5-dev

-- 
Jean-Paul Smets-Solanes, Nexedi CEO - Tel. +33(0)6 62 05 76 14
Nexedi: Consulting and Development of Libre / Open Source Software
http://www.nexedi.com
ERP5: Libre/ Open Source ERP Software for small and medium companies
http://www.erp5.org
Rentalinux: Desktop Linux Server
http://www.rentalinux.com



More information about the Erp5-dev mailing list