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