Commit 72d94702 authored by Aurel's avatar Aurel

fix security for manual validation

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18912 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba66bf51
...@@ -93,6 +93,14 @@ ...@@ -93,6 +93,14 @@
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>*args, **kw</string> </value> <value> <string>*args, **kw</string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
......
...@@ -72,6 +72,8 @@ result = []\n ...@@ -72,6 +72,8 @@ result = []\n
resultContainer = {}\n resultContainer = {}\n
result_line = []\n result_line = []\n
\n \n
if listbox is None:\n
listbox = []\n
\n \n
# remove existing lines\n # remove existing lines\n
old_line = [x.getObject() for x in context.objectValues(portal_type=[\'Checkbook Delivery Line\'])]\n old_line = [x.getObject() for x in context.objectValues(portal_type=[\'Checkbook Delivery Line\'])]\n
...@@ -166,6 +168,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -166,6 +168,7 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>result</string> <string>result</string>
<string>resultContainer</string> <string>resultContainer</string>
<string>result_line</string> <string>result_line</string>
<string>None</string>
<string>append</string> <string>append</string>
<string>$append0</string> <string>$append0</string>
<string>_getiter_</string> <string>_getiter_</string>
...@@ -181,7 +184,6 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n ...@@ -181,7 +184,6 @@ request[ \'RESPONSE\' ].redirect( redirect_url )\n
<string>item</string> <string>item</string>
<string>delivery_line</string> <string>delivery_line</string>
<string>item_dict</string> <string>item_dict</string>
<string>None</string>
<string>reference_range_min</string> <string>reference_range_min</string>
<string>reference_range_max</string> <string>reference_range_max</string>
<string>_write_</string> <string>_write_</string>
......
...@@ -119,7 +119,9 @@ line.setDestinationPaymentValue(transaction.getDestinationPaymentValue())\n ...@@ -119,7 +119,9 @@ line.setDestinationPaymentValue(transaction.getDestinationPaymentValue())\n
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -107,7 +107,9 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\' ...@@ -107,7 +107,9 @@ for check_operation_line in transaction.contentValues(filter = {\'portal_type\'
<item> <item>
<key> <string>_proxy_roles</string> </key> <key> <string>_proxy_roles</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
<string>Reviewer</string> <string>Reviewer</string>
...@@ -106,6 +107,7 @@ ...@@ -106,6 +107,7 @@
<tuple> <tuple>
<string>Assignee</string> <string>Assignee</string>
<string>Assignor</string> <string>Assignor</string>
<string>DestinationAssignee</string>
<string>Manager</string> <string>Manager</string>
<string>Owner</string> <string>Owner</string>
<string>Reviewer</string> <string>Reviewer</string>
......
...@@ -86,13 +86,17 @@ ...@@ -86,13 +86,17 @@
<item> <item>
<key> <string>Add portal content</string> </key> <key> <string>Add portal content</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
<key> <string>Modify portal content</string> </key> <key> <string>Modify portal content</string> </key>
<value> <value>
<tuple/> <tuple>
<string>Manager</string>
</tuple>
</value> </value>
</item> </item>
<item> <item>
......
364 365
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment