diff --git a/python/ql/lib/semmle/python/ApiGraphs.qll b/python/ql/lib/semmle/python/ApiGraphs.qll index 1023347b832..256fe6442f4 100644 --- a/python/ql/lib/semmle/python/ApiGraphs.qll +++ b/python/ql/lib/semmle/python/ApiGraphs.qll @@ -597,11 +597,9 @@ module API { // "benign" and let subclasses edges flow through anyway. // see example in https://github.com/django/django/blob/c2250cfb80e27cdf8d098428824da2800a18cadf/tests/auth_tests/test_views.py#L40-L46 ( - not exists(clsExpr.getADecorator()) and ref.asExpr() = clsExpr or - ref.asExpr() = clsExpr.getADecoratorCall() and - not exists(PY::Call otherDecorator | otherDecorator.getArg(0) = ref.asExpr()) + ref.asExpr() = clsExpr.getADecoratorCall() ) ) or