Commit 5788f50f authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with right checking.

parent 8fbefb8c
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -216,11 +216,10 @@ class CCServer(object):
                continue
            if tql is not None and right['tql']:
                objects_right = self.list(right['tql'], pure=True)
                if not objects <= objects_right:
                    continue
            if right['target'] == 'allow':
                return True
                if objects <= objects_right:
                    return right['target'] == 'allow'
            else:
                return right['target'] == 'allow'
        return False

    def list(self, query, show=set(), pure=False):