server/querier.py
changeset 8695 358d8bed9626
parent 8694 d901c36bcfce
child 8696 0bb18407c053
equal deleted inserted replaced
8694:d901c36bcfce 8695:358d8bed9626
   397         restricted_vars = set()
   397         restricted_vars = set()
   398         newsolutions = []
   398         newsolutions = []
   399         for solution in rqlst.solutions:
   399         for solution in rqlst.solutions:
   400             try:
   400             try:
   401                 localcheck = check_read_access(session, rqlst, solution, self.args)
   401                 localcheck = check_read_access(session, rqlst, solution, self.args)
   402             except Unauthorized, ex:
   402             except Unauthorized as ex:
   403                 msg = 'remove %s from solutions since %s has no %s access to %s'
   403                 msg = 'remove %s from solutions since %s has no %s access to %s'
   404                 msg %= (solution, session.user.login, ex.args[0], ex.args[1])
   404                 msg %= (solution, session.user.login, ex.args[0], ex.args[1])
   405                 msgs.append(msg)
   405                 msgs.append(msg)
   406                 LOGGER.info(msg)
   406                 LOGGER.info(msg)
   407             else:
   407             else: