cubicweb/server/ssplanner.py
changeset 11765 9cb215e833b0
parent 11237 f32134dd0067
child 11767 432f87a63057
equal deleted inserted replaced
11764:6ab14a1afb65 11765:9cb215e833b0
    90                 # check read permission here since it may not be done by
    90                 # check read permission here since it may not be done by
    91                 # the generated select substep if not emited (eg nothing
    91                 # the generated select substep if not emited (eg nothing
    92                 # to be selected)
    92                 # to be selected)
    93                 if checkread and eid not in neweids:
    93                 if checkread and eid not in neweids:
    94                     with cnx.security_enabled(read=False):
    94                     with cnx.security_enabled(read=False):
    95                         eschema(cnx.entity_metas(eid)['type']).check_perm(
    95                         eschema(cnx.entity_type(eid)).check_perm(
    96                             cnx, 'read', eid=eid)
    96                             cnx, 'read', eid=eid)
    97                 eidconsts[lhs.variable] = eid
    97                 eidconsts[lhs.variable] = eid
    98     return eidconsts
    98     return eidconsts
    99 
    99 
   100 def _build_substep_query(select, origrqlst):
   100 def _build_substep_query(select, origrqlst):