mirror of
https://github.com/ash-project/ash.git
synced 2024-09-20 13:33:20 +12:00
fix: don't cast notloaded/forbidden values at runtime
This commit is contained in:
parent
4adbd47191
commit
356fa3a780
1 changed files with 6 additions and 0 deletions
|
@ -360,6 +360,12 @@ defmodule Ash.Actions.Helpers do
|
|||
nil ->
|
||||
{:cont, {:ok, record}}
|
||||
|
||||
%Ash.NotLoaded{} ->
|
||||
{:cont, {:ok, record}}
|
||||
|
||||
%Ash.ForbiddenField{} ->
|
||||
{:cont, {:ok, record}}
|
||||
|
||||
value ->
|
||||
case Ash.Type.cast_stored(
|
||||
attr.type,
|
||||
|
|
Loading…
Reference in a new issue