Commit 2e2354ed authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

revert r30216 because security should not be considered for Inventory API by...

revert r30216 because security should not be considered for Inventory API by default. we will introduce check_permission=False argument in all Inventory APIs later.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30242 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6cbd93ec
......@@ -647,7 +647,6 @@ precision</string> </value>
<key> <string>src</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery())">\n
SET @running_total_quantity := <dtml-var initial_running_total_quantity>,\n
@running_total_price := <dtml-var initial_running_total_price>;\n
<dtml-var sql_delimiter>\n
......@@ -683,11 +682,6 @@ SELECT\n
section.relative_url AS section_relative_url\n
\n
FROM\n
<dtml-in prefix="table" expr="query[\'from_table_list\']">\n
<dtml-if "table_key not in (\'stock\', \'catalog\')">\n
<dtml-var table_item> AS <dtml-var table_key>,\n
</dtml-if>\n
</dtml-in>\n
stock\n
<dtml-if section_filtered> INNER <dtml-else> LEFT </dtml-if> \n
JOIN catalog AS section ON (section.uid = stock.section_uid)\n
......@@ -702,9 +696,6 @@ FROM\n
\n
WHERE\n
1 = 1\n
<dtml-if "query[\'where_expression\']">\n
AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n
<dtml-if where_expression>\n
AND <dtml-var where_expression>\n
</dtml-if>\n
......@@ -782,7 +773,7 @@ LIMIT\n
</dtml-if>\n
\n
) AS q1\n
</dtml-let>
]]></string> </value>
</item>
......@@ -822,7 +813,6 @@ LIMIT\n
<key> <string>raw</string> </key>
<value> <string encoding="cdata"><![CDATA[
<dtml-let query="portal_catalog.buildSQLQuery(query=portal_catalog.getSecurityQuery())">\n
SET @running_total_quantity := <dtml-var initial_running_total_quantity>,\n
@running_total_price := <dtml-var initial_running_total_price>;\n
<dtml-var sql_delimiter>\n
......@@ -858,11 +848,6 @@ SELECT\n
section.relative_url AS section_relative_url\n
\n
FROM\n
<dtml-in prefix="table" expr="query[\'from_table_list\']">\n
<dtml-if "table_key not in (\'stock\', \'catalog\')">\n
<dtml-var table_item> AS <dtml-var table_key>,\n
</dtml-if>\n
</dtml-in>\n
stock\n
<dtml-if section_filtered> INNER <dtml-else> LEFT </dtml-if> \n
JOIN catalog AS section ON (section.uid = stock.section_uid)\n
......@@ -877,9 +862,6 @@ FROM\n
\n
WHERE\n
1 = 1\n
<dtml-if "query[\'where_expression\']">\n
AND <dtml-var "query[\'where_expression\']">\n
</dtml-if>\n
<dtml-if where_expression>\n
AND <dtml-var where_expression>\n
</dtml-if>\n
......@@ -957,7 +939,7 @@ LIMIT\n
</dtml-if>\n
\n
) AS q1\n
</dtml-let>
]]></string> </value>
</item>
......
1357
\ No newline at end of file
1358
\ 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