changeset 2895 | 903bd3f89f80 |
parent 2847 | c2ee28f4d4b1 |
child 2968 | 0e3460341023 |
--- 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):