diff -r d8de1ac21f36 -r 432f87a63057 cubicweb/hooks/security.py --- a/cubicweb/hooks/security.py Wed Oct 05 15:28:43 2016 +0200 +++ b/cubicweb/hooks/security.py Fri Sep 30 18:25:08 2016 +0200 @@ -1,4 +1,4 @@ -# copyright 2003-2014 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2016 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -19,9 +19,6 @@ the connected user """ -__docformat__ = "restructuredtext en" -from warnings import warn - from logilab.common.registry import objectify_predicate from yams import buildobjs @@ -30,13 +27,9 @@ from cubicweb.server import BEFORE_ADD_RELATIONS, ON_COMMIT_ADD_RELATIONS, hook - def check_entity_attributes(cnx, entity, action, editedattrs=None): eid = entity.eid eschema = entity.e_schema - if action == 'delete': - eschema.check_perm(session, action, eid=eid) - return # ._cw_skip_security_attributes is there to bypass security for attributes # set by hooks by modifying the entity's dictionary if editedattrs is None: