jhtimmins commented on a change in pull request #11189:
URL: https://github.com/apache/airflow/pull/11189#discussion_r503338748



##########
File path: airflow/www/views.py
##########
@@ -545,7 +546,7 @@ def dag_stats(self, session=None):
         dr = models.DagRun
 
         allowed_dag_ids = 
current_app.appbuilder.sm.get_accessible_dag_ids(g.user)
-        if 'all_dags' in allowed_dag_ids:
+        if permissions.RESOURCE_ALL_DAGS in allowed_dag_ids:

Review comment:
       Agreed, and agreed.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to