Advertisement
Guest User

Untitled

a guest
Jul 17th, 2023
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. [
  2. %Ash.Policy.Policy{
  3. condition: [{Checks.IsSiteAdminActor, [access_type: :filter]}],
  4. policies: [
  5. %Ash.Policy.Check{
  6. check: {Ash.Policy.Check.Static, [result: true]},
  7. check_module: Ash.Policy.Check.Static,
  8. check_opts: [result: true, access_type: :filter],
  9. type: :authorize_if
  10. }
  11. ],
  12. bypass?: true,
  13. checks: nil,
  14. description: nil,
  15. access_type: :filter
  16. },
  17. %Ash.Policy.Policy{
  18. condition: [{Checks.IsSystemActor, [access_type: :filter]}],
  19. policies: [
  20. %Ash.Policy.Check{
  21. check: {Ash.Policy.Check.Static, [result: true]},
  22. check_module: Ash.Policy.Check.Static,
  23. check_opts: [result: true, access_type: :filter],
  24. type: :authorize_if
  25. }
  26. ],
  27. bypass?: true,
  28. checks: nil,
  29. description: nil,
  30. access_type: :filter
  31. },
  32. %Ash.Policy.Policy{
  33. condition: [
  34. {Ash.Policy.Check.ActionType, [type: :create, access_type: :filter]}
  35. ],
  36. policies: [
  37. %Ash.Policy.Check{
  38. check: {Checks.IsIamActor, []},
  39. check_module: Checks.IsIamActor,
  40. check_opts: [access_type: :filter],
  41. type: :authorize_if
  42. }
  43. ],
  44. bypass?: nil,
  45. checks: nil,
  46. description: nil,
  47. access_type: :filter
  48. },
  49. %Ash.Policy.Policy{
  50. condition: [
  51. {Ash.Policy.Check.Action, [action: :update, access_type: :filter]}
  52. ],
  53. policies: [
  54. %Ash.Policy.Check{
  55. check: {Checks.IsIamActor, []},
  56. check_module: Checks.IsIamActor,
  57. check_opts: [access_type: :filter],
  58. type: :authorize_if
  59. }
  60. ],
  61. bypass?: nil,
  62. checks: nil,
  63. description: nil,
  64. access_type: :filter
  65. },
  66. %Ash.Policy.Policy{
  67. condition: [
  68. {Ash.Policy.Check.Action, [action: :system_update, access_type: :filter]}
  69. ],
  70. policies: [
  71. %Ash.Policy.Check{
  72. check: {Checks.IsSystemActor, []},
  73. check_module: Checks.IsSystemActor,
  74. check_opts: [access_type: :filter],
  75. type: :authorize_if
  76. },
  77. %Ash.Policy.Check{
  78. check: {Checks.IsIamActor, []},
  79. check_module: Checks.IsIamActor,
  80. check_opts: [access_type: :filter],
  81. type: :authorize_if
  82. }
  83. ],
  84. bypass?: nil,
  85. checks: nil,
  86. description: nil,
  87. access_type: :filter
  88. },
  89. %Ash.Policy.Policy{
  90. condition: [
  91. {Ash.Policy.Check.Action, [action: :destroy, access_type: :filter]}
  92. ],
  93. policies: [
  94. %Ash.Policy.Check{
  95. check: {Checks.IsIamActor, []},
  96. check_module: Checks.IsIamActor,
  97. check_opts: [access_type: :filter],
  98. type: :authorize_if
  99. }
  100. ],
  101. bypass?: nil,
  102. checks: nil,
  103. description: nil,
  104. access_type: :filter
  105. },
  106. %Ash.Policy.Policy{
  107. condition: [
  108. {Ash.Policy.Check.Action, [action: :read, access_type: :filter]},
  109. {AshRbac.HasRole, [role: ["public"], access_type: :filter]}
  110. ],
  111. policies: [
  112. %Ash.Policy.Check{
  113. check: {Ash.Policy.Check.Static, [result: true]},
  114. check_module: Ash.Policy.Check.Static,
  115. check_opts: [result: true, access_type: :filter],
  116. type: :authorize_if
  117. }
  118. ],
  119. bypass?: nil,
  120. checks: nil,
  121. description: nil,
  122. access_type: :filter
  123. }
  124. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement