hooks/workflow.py
changeset 4088 23ce2b3fb03d
parent 4075 e710f4052bd6
child 4181 c79135c217df
--- a/hooks/workflow.py	Wed Dec 09 16:33:32 2009 +0100
+++ b/hooks/workflow.py	Wed Dec 09 17:10:01 2009 +0100
@@ -276,7 +276,7 @@
 
     def __call__(self):
         session = self._cw
-        nocheck = session.transaction_data.setdefault('skip-security', ())
+        nocheck = session.transaction_data.get('skip-security', ())
         if (self.eidfrom, 'in_state', self.eidto) in nocheck:
             # state changed through TrInfo insertion, so we already know it's ok
             return