https://github.com/apache/airflow/blob/main/airflow/cli/commands/task_command.py#L145
return get_airflow_app().appbuilder.sm.has_access(
        permissions.ACTION_CAN_CREATE, permissions.RESOURCE_VARIABLE
    )
class VariableModelView(AirflowModelView):
    """View to show records from Variable table."""
    route_base = "/variable"
    list_template = "airflow/variable_list.html"
    edit_template = "airflow/variable_edit.html"
    show_template = "airflow/variable_show.html"
    show_widget = AirflowVariableShowWidget
    datamodel = AirflowModelView.CustomSQLAInterface(models.Variable)  
    class_permission_name = permissions.RESOURCE_VARIABLE
    method_permission_name = {
        "add": "create",
        "list": "read",
        "edit": "edit",
        "show": "read",
        "delete": "delete",
        "action_muldelete": "delete",