From 5723b0447f3a81e756bae3f0d9fc8b4487407854 Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 9 Mar 2023 20:57:53 -0500 Subject: [PATCH] fix: remove pre_flight expression checking --- lib/ash/api/api.ex | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/lib/ash/api/api.ex b/lib/ash/api/api.ex index c5453cfd..a7a85c61 100644 --- a/lib/ash/api/api.ex +++ b/lib/ash/api/api.ex @@ -484,18 +484,12 @@ defmodule Ash.Api do # Get action type from resource case query_or_changeset do %Ash.Query{} = query -> - query = - query - |> Map.put(:api, api) - |> Ash.Query.set_context(%{private: %{pre_flight_authorization?: true}}) + query = Map.put(query, :api, api) run_check(api, actor, query, opts) %Ash.Changeset{} = changeset -> - changeset = - changeset - |> Map.put(:api, api) - |> Ash.Changeset.set_context(%{private: %{pre_flight_authorization?: true}}) + changeset = Map.put(changeset, :api, api) run_check(api, actor, changeset, opts)