equal
deleted
inserted
replaced
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() |