schema.py
changeset 5545 25fd74c23f91
parent 5531 0ce62ac0d1d7
child 5558 afd1face1faf
child 5703 24ca7615379b
equal deleted inserted replaced
5527:01a7228ab5a0 5545:25fd74c23f91
   864                 # (type conflict)
   864                 # (type conflict)
   865                 self.warning('%s: %s', rql, str(ex))
   865                 self.warning('%s: %s', rql, str(ex))
   866                 if self.eid is not None:
   866                 if self.eid is not None:
   867                     session.local_perm_cache[key] = False
   867                     session.local_perm_cache[key] = False
   868                 return False
   868                 return False
       
   869             except Unauthorized, ex:
       
   870                 self.debug('unauthorized %s: %s', rql, str(ex))
       
   871                 if self.eid is not None:
       
   872                     session.local_perm_cache[key] = False
       
   873                 return False
   869         else:
   874         else:
   870             rset = session.eid_rset(kwargs[keyarg])
   875             rset = session.eid_rset(kwargs[keyarg])
   871         # if no special has_*_permission relation in the rql expression, just
   876         # if no special has_*_permission relation in the rql expression, just
   872         # check the result set contains something
   877         # check the result set contains something
   873         if has_perm_defs is None:
   878         if has_perm_defs is None: