From 843a22f74c01612b1858c69b86d0eb5b1cc89a38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Werner?= Date: Wed, 18 May 2016 12:31:12 +0200 Subject: [PATCH] [AIRFLOW-127] Makes filter_by_owner aware of multi-owner DAG --- airflow/www/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/www/views.py b/airflow/www/views.py index 696211534763a..b4d4cfa95bea6 100644 --- a/airflow/www/views.py +++ b/airflow/www/views.py @@ -1733,7 +1733,7 @@ def index(self): session.query(DM) .filter( ~DM.is_subdag, DM.is_active, - DM.owners == current_user.username) + DM.owners.like('%' + current_user.username + '%')) .all() ) else: