server/querier.py
changeset 10555 d8df2c7cff1a
parent 10477 ee21c559f94f
child 10589 7c23b7de2b8d
equal deleted inserted replaced
10554:c39749d14c53 10555:d8df2c7cff1a
    74     except AttributeError:
    74     except AttributeError:
    75         return cnx.entity_metas(term.eval(args))['type']
    75         return cnx.entity_metas(term.eval(args))['type']
    76 
    76 
    77 def check_relations_read_access(cnx, select, args):
    77 def check_relations_read_access(cnx, select, args):
    78     """Raise :exc:`Unauthorized` if the given user doesn't have credentials to
    78     """Raise :exc:`Unauthorized` if the given user doesn't have credentials to
    79     read relations used in the givel syntaxt tree
    79     read relations used in the given syntax tree
    80     """
    80     """
    81     # use `term_etype` since we've to deal with rewritten constants here,
    81     # use `term_etype` since we've to deal with rewritten constants here,
    82     # when used as an external source by another repository.
    82     # when used as an external source by another repository.
    83     # XXX what about local read security w/ those rewritten constants...
    83     # XXX what about local read security w/ those rewritten constants...
    84     # XXX constants can also happen in some queries generated by req.find()
    84     # XXX constants can also happen in some queries generated by req.find()