Commit 2d4e43b3 authored by Łukasz Nowak's avatar Łukasz Nowak

Do not trust catalog.

Caller uses catalog to call method, avoid trusting it.
parent 2f901fe0
...@@ -55,6 +55,8 @@ ...@@ -55,6 +55,8 @@
from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery\n from Products.ZSQLCatalog.SQLCatalog import Query, NegatedQuery\n
from DateTime import DateTime\n from DateTime import DateTime\n
movement = context\n movement = context\n
if movement.getSimulationState() != \'confirmed\':\n
return\n
portal = movement.getPortalObject()\n portal = movement.getPortalObject()\n
cleanup_service = portal.portal_preferences.getPreferredInstanceCleanupResource()\n cleanup_service = portal.portal_preferences.getPreferredInstanceCleanupResource()\n
\n \n
......
701 702
\ 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