defmodule Scribble.Checks.ActorIsPayingOrTrialing do
use Ash.Policy.SimpleCheck
require Logger
def describe(_) do
"actor is paying or trialing"
end
def match?(%Scribble.EmailHandler.User{} = user, _context, _options) do
Logger.error("\n\n\n============================CHECKING\n\n\n")
IO.puts("======")
IO.inspect(user)
# Scribble.EmailHandler.User.is_paying_or_trialing!(user)
true
end
def match?(_, _, _) do
Logger.error("===========WHAT IS THIS")
true
end
end
defmodule Scribble.Checks.ActorIsPayingOrTrialing do
use Ash.Policy.SimpleCheck
require Logger
def describe(_) do
"actor is paying or trialing"
end
def match?(%Scribble.EmailHandler.User{} = user, _context, _options) do
Logger.error("\n\n\n============================CHECKING\n\n\n")
IO.puts("======")
IO.inspect(user)
# Scribble.EmailHandler.User.is_paying_or_trialing!(user)
true
end
def match?(_, _, _) do
Logger.error("===========WHAT IS THIS")
true
end
end