ashb commented on a change in pull request #4973: [AIRFLOW-4155] Allow Public 
role access to /home
URL: https://github.com/apache/airflow/pull/4973#discussion_r268761260
 
 

 ##########
 File path: airflow/www/templates/airflow/dags.html
 ##########
 @@ -28,6 +28,17 @@
 {% block content %}
   <h2>DAGs</h2>
 
+{% if not is_user_logged_in %}
+<div class="alert alert-warning" role="alert">
+  Note: Some DAGs may not be visible until you <a href="/login/">log in</a>.
+</div>
+{% elif is_public_user %}
+<div class="alert alert-warning" role="alert">
+  Note: Some DAGs may not be visible because you do not have sufficient 
privileges.
 
 Review comment:
   This warning could equally apply to every other role except Admin.
   
   How about only showing this if `len(dags) == 0`

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to