# HG changeset patch # User Sylvain Thénault # Date 1250548159 -7200 # Node ID 903bd3f89f804efb4865afd73107ef9195b8937e # Parent 4b720d82a1e4148ac333dc4c365bc2be54e1c929 should directly use entity.check_perm now that we've an entity instance diff -r 4b720d82a1e4 -r 903bd3f89f80 hooks/security.py --- a/hooks/security.py Tue Aug 18 00:28:55 2009 +0200 +++ b/hooks/security.py Tue Aug 18 00:29:19 2009 +0200 @@ -82,7 +82,7 @@ events = ('before_delete_entity',) def __call__(self): - self.entity.e_schema.check_perm(self._cw, 'delete', eid) + self.entity.check_perm('delete') class BeforeAddRelationSecurityHook(SecurityHook):