cubicweb/hooks/syncschema.py
changeset 12025 ba79f4a4f5d8
parent 11904 e760c54490b1
child 12512 661dd0436c01
--- a/cubicweb/hooks/syncschema.py	Fri Mar 10 12:01:31 2017 +0100
+++ b/cubicweb/hooks/syncschema.py	Fri Mar 10 16:41:10 2017 +0100
@@ -217,10 +217,6 @@
             repo.schema.rebuild_infered_relations()
             # trigger vreg reload
             repo.set_schema(repo.schema)
-            # CWUser class might have changed, update current session users
-            cwuser_cls = self.cnx.vreg['etypes'].etype_class('CWUser')
-            for session in repo._sessions.values():
-                session.user.__class__ = cwuser_cls
         except Exception:
             self.critical('error while setting schema', exc_info=True)