# HG changeset patch # User Julien Cristau # Date 1437494952 -7200 # Node ID a05a698a12af2896245345683aef86ee0aa8e7de # Parent 38b108b6bb1f4b4b0e7f4b10ac8c46b4cd2fd55a [hook] don't open-code Connection.entity_cache diff -r 38b108b6bb1f -r a05a698a12af hooks/security.py --- a/hooks/security.py Thu Jul 09 15:13:10 2015 +0200 +++ b/hooks/security.py Tue Jul 21 18:09:12 2015 +0200 @@ -143,7 +143,7 @@ """ assert rschema.inlined try: - entity = cnx.transaction_data['ecache'][eid] + entity = cnx.entity_cache(eid) except KeyError: return False return rschema.type in entity.cw_edited.skip_security