Skip to content

Trigger button should be greyed out when no permissions to trigger DAG #57966

@BasPH

Description

@BasPH

Apache Airflow version

Other Airflow 2/3 version (please specify below)

If "Other Airflow 2/3 version" selected, which one?

3.1.0

What happened?

My user has no permission to trigger DAGs (i.e. no permission to create DAG runs).

However, in the UI, the trigger DAG button is accessible:

Image

You can enter details, and only after clicking the "Trigger" button do you receive an error:

Image

It would be more intuitive to grey out the button when the user has no permissions to trigger DAGs.

What you think should happen instead?

No response

How to reproduce

Run Airflow with read-only permissions

Operating System

Linux

Versions of Apache Airflow Providers

No response

Deployment

Astronomer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:UIRelated to UI/UX. For Frontend Developers.area:authkind:featureFeature Requests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions