--- 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)