XD-DENG opened a new pull request #4767: [AIRFLOW-3947] Flash msg for no 
DAG-level access error
URL: https://github.com/apache/airflow/pull/4767
 
 
   ### Jira
   
     - https://issues.apache.org/jira/browse/AIRFLOW-3947
   
   
   ### Description
   
   - [x] Here are some details about my PR, including screenshots of any UI 
changes:
   
   In FAB UI, when user clicks a page to which he/she doesn't have access, 
there will be a "Access is Denied" flash message.
   
   But for the DAG-level access control: when the user clicks a DAG to which 
he/she doesn't have access, he/she would be redirected to the main page WITHOUT 
any flash message. This may be confusing to the user.
   
   This PR adds proper flash warning message in the UI for this. Users will see 
flash message "**DAG-level access is denied**" when they click on a DAG to 
which he/she doesn't have "can_dag_view"/"can_dag_edit" permissions.
   
   ![alt 
text](https://raw.githubusercontent.com/XD-DENG/temp_repo/master/image_1.png)
   
   
   
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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