vumdao opened a new issue, #51869:
URL: https://github.com/apache/airflow/issues/51869
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.10.5
### What happened?
I define access_control
```
ACCESS_CONTROL = {
'myrole': {
"DAGs": {"can_edit", "can_read", "can_delete"},
"DAG Runs": {"can_create", "can_read", "menu_access"}
}
}
```
But when running it announced
```
/airflow/airflow-jobs/migrate_placement_dag.py:108 RemovedInAirflow3Warning:
The 'can_dag_read' and 'can_dag_edit' permissions are deprecated. Please use
'can_read' and 'can_edit', respectively.
```
### What you think should happen instead?
No RemovedInAirflow3Warning
### How to reproduce
Add access_control in DAGs
```
ACCESS_CONTROL = {
'myrole': {
"DAGs": {"can_edit", "can_read", "can_delete"},
"DAG Runs": {"can_create", "can_read", "menu_access"}
}
}
```
### Operating System
macOS Sequoia 15.5
### Versions of Apache Airflow Providers
_No response_
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]