server/session.py
changeset 9604 eba0e1b033ab
parent 9557 a3c075fe9385
child 9623 2171da5b9234
--- a/server/session.py	Thu Apr 03 17:25:53 2014 +0200
+++ b/server/session.py	Fri Apr 04 10:46:53 2014 +0200
@@ -1748,10 +1748,6 @@
         super(InternalSession, self).__init__(InternalManager(), repo, cnxprops,
                                               _id='internal')
         self.user._cw = self # XXX remove when "vreg = user._cw.vreg" hack in entity.py is gone
-        if not safe:
-            self.disable_hook_categories('integrity')
-        self.disable_hook_categories('security')
-        self._cnx.ctx_count += 1
 
     def __enter__(self):
         return self