hooks/security.py
changeset 10547 a05a698a12af
parent 10388 90fcddcce166
child 10548 2b398e58ea73
equal deleted inserted replaced
10521:38b108b6bb1f 10547:a05a698a12af
   141     in case where the relation has been set through modification of
   141     in case where the relation has been set through modification of
   142     `entity.cw_edited` in a hook
   142     `entity.cw_edited` in a hook
   143     """
   143     """
   144     assert rschema.inlined
   144     assert rschema.inlined
   145     try:
   145     try:
   146         entity = cnx.transaction_data['ecache'][eid]
   146         entity = cnx.entity_cache(eid)
   147     except KeyError:
   147     except KeyError:
   148         return False
   148         return False
   149     return rschema.type in entity.cw_edited.skip_security
   149     return rschema.type in entity.cw_edited.skip_security
   150 
   150 
   151 
   151