improvement: update to latest ash

This commit is contained in:
Zach Daniel 2022-09-28 00:00:33 -04:00
parent d0a6c84d7a
commit 50224faed0
4 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ defmodule Demo.Accounts.User do
end
policy action_type(:read) do
authorize_if attribute(:id, eq: actor(:id))
authorize_if expr(id == ^actor(:id))
end
end

View file

@ -27,7 +27,7 @@ defmodule Demo.Tickets.Customer do
end
policy action_type(:read) do
authorize_if attribute(:id, eq: actor(:id))
authorize_if expr(id == ^actor(:id))
authorize_if relates_to_actor_via([:reported_tickets, :representative])
end
end

View file

@ -90,7 +90,7 @@ defmodule AshAdmin.MixProject do
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:ash, "~> 2.0.0-rc.9", override: true},
{:ash, "~> 2.0.0-rc.10", override: true},
{:ash_phoenix, "~> 1.1.0-rc.0"},
{:surface, "~> 0.9.1"},
{:phoenix_live_view, "~> 0.18"},

View file

@ -1,5 +1,5 @@
%{
"ash": {:hex, :ash, "2.0.0-rc.9", "c285f783cae15e81fd16c18c0ce7198b060b728f78ea16dc27ae2a642cd6356b", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:earmark, "~> 1.4", [hex: :earmark, repo: "hexpm", optional: true]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8.0", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: false]}, {:spark, "~> 0.1 and >= 0.1.9", [hex: :spark, repo: "hexpm", optional: false]}, {:stream_data, "~> 0.5.0", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "0d6ffc2678193e4f621244a4d81f886bf4acac17e4b7f53c4751025f52ec7287"},
"ash": {:hex, :ash, "2.0.0-rc.10", "30966fd2814b6dfb0d5729e767d37555b2a9c9585e43669ad71161d0201cfb00", [:mix], [{:comparable, "~> 1.0", [hex: :comparable, repo: "hexpm", optional: false]}, {:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:earmark, "~> 1.4", [hex: :earmark, repo: "hexpm", optional: true]}, {:ecto, "~> 3.7", [hex: :ecto, repo: "hexpm", optional: false]}, {:ets, "~> 0.8.0", [hex: :ets, repo: "hexpm", optional: false]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:picosat_elixir, "~> 0.2", [hex: :picosat_elixir, repo: "hexpm", optional: false]}, {:spark, "~> 0.1 and >= 0.1.9", [hex: :spark, repo: "hexpm", optional: false]}, {:stream_data, "~> 0.5.0", [hex: :stream_data, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.1", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "9eb7ec2b5ea527748f65f199c30be3303728950244897e132e2726339688e01e"},
"ash_phoenix": {:hex, :ash_phoenix, "1.1.0-rc.0", "0aee60c7c63540e316058e8c2501712a4daa10b9c64340f72c2e1e3f46839659", [:mix], [{:ash, "~> 2.0.0-rc.9", [hex: :ash, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5.6 or ~> 1.6", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.15", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}], "hexpm", "f9b7fac7e1ab0cf77d9fe6d3423f912bf17e61546eda33fdc9017747e19fe552"},
"ash_postgres": {:hex, :ash_postgres, "1.0.0-rc.6", "4bbc6f672b5a811747219139d4aa1094c4d56a40d8de0311b1d746311459ab43", [:mix], [{:ash, "~> 2.0.0-rc.9", [hex: :ash, repo: "hexpm", optional: false]}, {:ecto, "~> 3.8", [hex: :ecto, repo: "hexpm", optional: false]}, {:ecto_sql, "~> 3.8", [hex: :ecto_sql, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:postgrex, ">= 0.0.0", [hex: :postgrex, repo: "hexpm", optional: false]}], "hexpm", "3e8bc67cf3492a13e4962e397b4ba3246331a4d8c58542df8384f8c519ae4108"},
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm", "7af5c7e09fe1d40f76c8e4f9dd2be7cebd83909f31fee7cd0e9eadc567da8353"},