server/querier.py
branchstable
changeset 8333 baa3ea5eac2b
parent 8238 087bb529035c
child 8342 7a5271182ef0
equal deleted inserted replaced
8332:e7c008ebef74 8333:baa3ea5eac2b
   415                         continue
   415                         continue
   416                     for rqlexpr in rqlexprs:
   416                     for rqlexpr in rqlexprs:
   417                         if rqlexpr.check(session, eid):
   417                         if rqlexpr.check(session, eid):
   418                             break
   418                             break
   419                     else:
   419                     else:
   420                         raise Unauthorized()
   420                         raise Unauthorized('No read acces on %r with eid %i.' % (var, eid))
   421                 restricted_vars.update(localcheck)
   421                 restricted_vars.update(localcheck)
   422                 localchecks.setdefault(tuple(localcheck.iteritems()), []).append(solution)
   422                 localchecks.setdefault(tuple(localcheck.iteritems()), []).append(solution)
   423         # raise Unautorized exception if the user can't access to any solution
   423         # raise Unautorized exception if the user can't access to any solution
   424         if not newsolutions:
   424         if not newsolutions:
   425             raise Unauthorized('\n'.join(msgs))
   425             raise Unauthorized('\n'.join(msgs))