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):