sudarshan2906 opened a new issue #17508:
URL: https://github.com/apache/airflow/issues/17508


   **Apache Airflow version**: 2.1.2
   
   - **Cloud provider or hardware configuration**:
   - **OS** (e.g. from /etc/os-release): Debian 10
   - **Kernel** (e.g. `uname -a`):
   - **Install tools**:
   - **Others**:
   
   **What happened**:
   When access_control is configured in a dag, and we remove a role from 
access_control. The permission doesn't get removed from that role
   When `access_control={"test_role":{"can_edit"}}`
   
![image](https://user-images.githubusercontent.com/25225354/128717114-1e7a2c0a-53a3-4e56-b3cc-48ae7bd35129.png)
   After access_control is changed to {}
   
![image](https://user-images.githubusercontent.com/25225354/128717114-1e7a2c0a-53a3-4e56-b3cc-48ae7bd35129.png)
   
   **What you expected to happen**:
   The role should have also updated and the permission should be removed
   
   **How to reproduce it**:
   Create a dag with access control property set and after it gets created, 
edit the dag's access_control property by just removing a role or just replace 
it with another role.
   
   How often does this problem occur? Once? Every time etc?
   Every Time
   


-- 
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.

To unsubscribe, e-mail: [email protected]

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


Reply via email to