Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [
- %Ash.Policy.Policy{
- condition: [{Checks.IsSiteAdminActor, [access_type: :filter]}],
- policies: [
- %Ash.Policy.Check{
- check: {Ash.Policy.Check.Static, [result: true]},
- check_module: Ash.Policy.Check.Static,
- check_opts: [result: true, access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: true,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [{Checks.IsSystemActor, [access_type: :filter]}],
- policies: [
- %Ash.Policy.Check{
- check: {Ash.Policy.Check.Static, [result: true]},
- check_module: Ash.Policy.Check.Static,
- check_opts: [result: true, access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: true,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [
- {Ash.Policy.Check.ActionType, [type: :create, access_type: :filter]}
- ],
- policies: [
- %Ash.Policy.Check{
- check: {Checks.IsIamActor, []},
- check_module: Checks.IsIamActor,
- check_opts: [access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: nil,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [
- {Ash.Policy.Check.Action, [action: :update, access_type: :filter]}
- ],
- policies: [
- %Ash.Policy.Check{
- check: {Checks.IsIamActor, []},
- check_module: Checks.IsIamActor,
- check_opts: [access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: nil,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [
- {Ash.Policy.Check.Action, [action: :system_update, access_type: :filter]}
- ],
- policies: [
- %Ash.Policy.Check{
- check: {Checks.IsSystemActor, []},
- check_module: Checks.IsSystemActor,
- check_opts: [access_type: :filter],
- type: :authorize_if
- },
- %Ash.Policy.Check{
- check: {Checks.IsIamActor, []},
- check_module: Checks.IsIamActor,
- check_opts: [access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: nil,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [
- {Ash.Policy.Check.Action, [action: :destroy, access_type: :filter]}
- ],
- policies: [
- %Ash.Policy.Check{
- check: {Checks.IsIamActor, []},
- check_module: Checks.IsIamActor,
- check_opts: [access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: nil,
- checks: nil,
- description: nil,
- access_type: :filter
- },
- %Ash.Policy.Policy{
- condition: [
- {Ash.Policy.Check.Action, [action: :read, access_type: :filter]},
- {AshRbac.HasRole, [role: ["public"], access_type: :filter]}
- ],
- policies: [
- %Ash.Policy.Check{
- check: {Ash.Policy.Check.Static, [result: true]},
- check_module: Ash.Policy.Check.Static,
- check_opts: [result: true, access_type: :filter],
- type: :authorize_if
- }
- ],
- bypass?: nil,
- checks: nil,
- description: nil,
- access_type: :filter
- }
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement