hooks/security.py
branchstable
changeset 5813 0b250d72fcfa
parent 5670 80dc2135bf5f
child 5815 282194aa43f3
child 5848 b5640328ffad
equal deleted inserted replaced
5812:d970049d7cfd 5813:0b250d72fcfa
    15 #
    15 #
    16 # You should have received a copy of the GNU Lesser General Public License along
    16 # You should have received a copy of the GNU Lesser General Public License along
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    17 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 """Security hooks: check permissions to add/delete/update entities according to
    18 """Security hooks: check permissions to add/delete/update entities according to
    19 the user connected to a session
    19 the user connected to a session
       
    20 """
    20 
    21 
    21 """
       
    22 __docformat__ = "restructuredtext en"
    22 __docformat__ = "restructuredtext en"
    23 
    23 
    24 from cubicweb import Unauthorized
    24 from cubicweb import Unauthorized
    25 from cubicweb.selectors import objectify_selector, lltrace
    25 from cubicweb.selectors import objectify_selector, lltrace
    26 from cubicweb.server import BEFORE_ADD_RELATIONS, ON_COMMIT_ADD_RELATIONS, hook
    26 from cubicweb.server import BEFORE_ADD_RELATIONS, ON_COMMIT_ADD_RELATIONS, hook