mirror of
https://github.com/ash-project/ash.git
synced 2024-09-19 21:13:10 +12:00
chore: update subproject policy tests
This commit is contained in:
parent
f761f6241f
commit
28233f4d97
2 changed files with 3 additions and 3 deletions
4
.github/workflows/test-subprojects.yml
vendored
4
.github/workflows/test-subprojects.yml
vendored
|
@ -74,10 +74,10 @@ jobs:
|
||||||
run: mix deps.get
|
run: mix deps.get
|
||||||
working-directory: ./${{matrix.project.name}}
|
working-directory: ./${{matrix.project.name}}
|
||||||
- run: mix test.create
|
- run: mix test.create
|
||||||
if: ${{matrix.project.name == 'ash_postgres' || matrix.project.name == 'ash_sqlite' || matrix.project.name == 'ash_oban'}}
|
if: ${{matrix.project.name == 'ash_postgres' || matrix.project.name == 'ash_sqlite' || matrix.project.name == 'ash_archival' || matrix.project.name == 'ash_oban'}}
|
||||||
working-directory: ./${{matrix.project.name}}
|
working-directory: ./${{matrix.project.name}}
|
||||||
- run: mix test.migrate
|
- run: mix test.migrate
|
||||||
if: ${{matrix.project.name == 'ash_postgres' || matrix.project.name == 'ash_sqlite' || matrix.project.name == 'ash_oban'}}
|
if: ${{matrix.project.name == 'ash_postgres' || matrix.project.name == 'ash_sqlite' || matrix.project.name == 'ash_archival' || matrix.project.name == 'ash_oban'}}
|
||||||
working-directory: ./${{matrix.project.name}}
|
working-directory: ./${{matrix.project.name}}
|
||||||
- run: mix test.migrate_tenants
|
- run: mix test.migrate_tenants
|
||||||
if: ${{matrix.project.name == 'ash_postgres'}}
|
if: ${{matrix.project.name == 'ash_postgres'}}
|
||||||
|
|
|
@ -9,7 +9,7 @@ defmodule Ash.Policy.Info do
|
||||||
|
|
||||||
@doc "Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages"
|
@doc "Whether or not Ash policy authorizer is configured to show policy breakdowns in error messages"
|
||||||
def show_policy_breakdowns? do
|
def show_policy_breakdowns? do
|
||||||
Keyword.get(Application.get_env(:ash, :policies, []), :show_policy_breakdowns?, true)
|
Keyword.get(Application.get_env(:ash, :policies, []), :show_policy_breakdowns?, false)
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc "Whether or not Ash policy authorizer is configured to log policy breakdowns"
|
@doc "Whether or not Ash policy authorizer is configured to log policy breakdowns"
|
||||||
|
|
Loading…
Reference in a new issue