### Apache Airflow version

main (development)

### What happened

Only users with the role `Admin` are allowed to use the action clear on the TaskInstance list view.

### What you think should happen instead

Users with role `User` should be able to clear task instance in the Task Instance page.

### How to reproduce

Try to clear Task instance while using a user with a `User` role.

### Operating System

Fedora 37

### 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?

- [X] 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)

"""Deletes DAG."""
        from airflow.api.common import delete_dag
        from airflow.exceptions import DagNotFound
        dag_id = request.values.get("dag_id")
        origin = get_safe_url(request.values.get("origin"))
        redirect_url = get_safe_url(request.values.get("redirect_url"))
        try:
            delete_dag.delete_dag(dag_id)
        except DagNotFound:
            flash(f"DAG with id {dag_id} not found. Cannot delete", "error")
            return redirect(redirect_url)
        except AirflowException:
            flash(
                f"Cannot delete DAG with id {dag_id} because some task instances of the DAG "
                "are still running. Please mark the  task instances as "
                "failed/succeeded before deleting the DAG",
                "error",
            )
            return redirect(redirect_url)
        flash(f"Deleting DAG with id {dag_id}. May take a couple minutes to fully disappear.")
        
        return redirect(origin)
    @expose("/trigger", methods=["POST", "GET"])
    @auth.has_access(
        [
            (permissions.ACTION_CAN_EDIT, permissions.RESOURCE_DAG),