cubicweb/server/ssplanner.py
changeset 11765 9cb215e833b0
parent 11237 f32134dd0067
child 11767 432f87a63057
--- a/cubicweb/server/ssplanner.py	Thu Oct 06 12:15:50 2016 +0200
+++ b/cubicweb/server/ssplanner.py	Sat Oct 01 11:56:27 2016 +0200
@@ -92,7 +92,7 @@
                 # to be selected)
                 if checkread and eid not in neweids:
                     with cnx.security_enabled(read=False):
-                        eschema(cnx.entity_metas(eid)['type']).check_perm(
+                        eschema(cnx.entity_type(eid)).check_perm(
                             cnx, 'read', eid=eid)
                 eidconsts[lhs.variable] = eid
     return eidconsts