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