Explorar o código

precompile abilities config

Olivier Massot hai 2 meses
pai
achega
87a08eae69

+ 2206 - 0
config/abilities/config-precompiled.ts

@@ -0,0 +1,2206 @@
+/**
+ * AUTO-GENERATED FILE - DO NOT MODIFY MANUALLY
+ *
+ * This file is automatically generated from YAML configuration files
+ * in config/abilities/pages/ directory.
+ *
+ * To make changes, edit the source YAML files and run the compilation script:
+ * npm run compile:abilities
+ *
+ * Generated on: 2025-09-24T15:38:23.834Z
+ */
+
+export default {
+  "accesses_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Users"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "users"
+          }
+        ]
+      }
+    ]
+  },
+  "student_registration_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "UsersSchool"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "student-registration"
+          }
+        ]
+      }
+    ]
+  },
+  "education_student_next_year_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "educationstudent"
+          }
+        ]
+      }
+    ]
+  },
+  "commissions_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Users"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "commissions"
+          }
+        ]
+      }
+    ]
+  },
+  "network_children_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Network"
+        ]
+      },
+      {
+        "function": "organizationHasChildren"
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "network"
+          }
+        ]
+      }
+    ]
+  },
+  "network_parents_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "NetworkOrganization"
+        ]
+      },
+      {
+        "function": "organizationHasChildren",
+        "expectedResult": false
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "network"
+          }
+        ]
+      }
+    ]
+  },
+  "all_accesses_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "user"
+          }
+        ]
+      }
+    ]
+  },
+  "all_organizations_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "organization"
+          }
+        ]
+      }
+    ]
+  },
+  "tips_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CorePremium"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "tips"
+          }
+        ]
+      }
+    ]
+  },
+  "dgv_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      }
+    ]
+  },
+  "cmf_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      }
+    ]
+  },
+  "right_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      }
+    ]
+  },
+  "tree_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Admin2IOS"
+        ]
+      }
+    ]
+  },
+  "basicompta_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Basicompta"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "basicompta"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_product_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_products_by_student_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_edition_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_accounting_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_payment_list_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "pes_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Pes"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "berger_levrault_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BergerLevrault"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "jvs_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Jvs"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "afi_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "AFI"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "sdd_regie_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "SddRegie"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "inbox_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "MessagesAdvanced"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "mails"
+          },
+          {
+            "action": "read",
+            "subject": "emails"
+          },
+          {
+            "action": "read",
+            "subject": "texto"
+          }
+        ]
+      }
+    ]
+  },
+  "message_send_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "MessagesAdvanced"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "mails"
+          },
+          {
+            "action": "read",
+            "subject": "emails"
+          },
+          {
+            "action": "read",
+            "subject": "texto"
+          }
+        ]
+      }
+    ]
+  },
+  "message_templates_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "MessagesAdvanced"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "mails"
+          },
+          {
+            "action": "read",
+            "subject": "emails"
+          },
+          {
+            "action": "read",
+            "subject": "texto"
+          }
+        ]
+      }
+    ]
+  },
+  "rate_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationRate",
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "send_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "state_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "pay_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "check_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "ledger_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "magazine_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCMFAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "ventilated_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "pay_erase_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "resume_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationTransmissionState"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "history_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationCall"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "call_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationStructure"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "history_structure_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationStructure"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "insurance_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationStructure",
+          "CotisationTransmissionState"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "resume_all_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationTransmission"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "resume_pay_cotisation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "CotisationTransmission"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "cotisation"
+          }
+        ]
+      }
+    ]
+  },
+  "donors_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Donors"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "donors"
+          }
+        ]
+      }
+    ]
+  },
+  "criteria_notations_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "education_notation_config_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "AdvancedEducationNotation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "seizure_period_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PeriodValidation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "test_seizure_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsSeizure"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-seizure"
+          }
+        ]
+      }
+    ]
+  },
+  "test_validation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "examen_results_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "education_by_student_validation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsSeizure"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-seizure"
+          }
+        ]
+      }
+    ]
+  },
+  "equipment_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Equipments"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "equipments"
+          }
+        ]
+      }
+    ]
+  },
+  "freemium_dashboard_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Freemium"
+        ]
+      }
+    ]
+  },
+  "freemium_organization_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Freemium"
+        ]
+      }
+    ]
+  },
+  "freemium_event_create_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Freemium"
+        ]
+      }
+    ]
+  },
+  "freemium_event_edit_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Freemium"
+        ]
+      }
+    ]
+  },
+  "my_schedule_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "attendance_bookings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Attendances"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "write",
+            "subject": "attendances"
+          }
+        ]
+      },
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "my_attendance_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "my_invitation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "my_students_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "teacher"
+        ]
+      }
+    ]
+  },
+  "my_students_education_students_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "teacher"
+        ]
+      }
+    ]
+  },
+  "criteria_notations_page_from_account_menu": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "criterianotation"
+          }
+        ]
+      }
+    ]
+  },
+  "my_education_students_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "student"
+        ]
+      }
+    ]
+  },
+  "send_an_email_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "admin",
+          "teacher"
+        ]
+      }
+    ]
+  },
+  "my_documents_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "my_profile_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "adherent_list_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Users"
+        ]
+      },
+      {
+        "function": "organizationIsShowAdherentList"
+      },
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "member"
+        ]
+      }
+    ]
+  },
+  "subscription_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "admin",
+          "administratifManager",
+          "pedagogicManager",
+          "financialManager",
+          "caMember"
+        ]
+      }
+    ]
+  },
+  "subscription_page_sms_section": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAllModules",
+        "parameters": [
+          "GeneralConfig",
+          "Sms"
+        ]
+      },
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "admin",
+          "administratifManager",
+          "pedagogicManager",
+          "financialManager",
+          "caMember"
+        ]
+      }
+    ]
+  },
+  "my_bills_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyProfile",
+        "parameters": [
+          "guardian",
+          "payor"
+        ]
+      }
+    ]
+  },
+  "cmf_licence_person_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsCmf"
+      },
+      {
+        "function": "accessIsAdminAccount",
+        "expectedResult": false
+      }
+    ]
+  },
+  "my_settings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      }
+    ]
+  },
+  "organization_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "organization"
+          }
+        ]
+      }
+    ]
+  },
+  "cmf_licence_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsCmf"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "organization"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_general_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_website_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_teaching_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_intranet_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_education_notation_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_bulletin_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_education_timings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_residence_areas_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_attendances_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_sms_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAllModules",
+        "parameters": [
+          "GeneralConfig",
+          "Sms"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "parameters_super_admin_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "place_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "place"
+          }
+        ]
+      }
+    ]
+  },
+  "education_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "tag_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "TaggAdvanced"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "tagg"
+          }
+        ]
+      }
+    ]
+  },
+  "activities_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "activity"
+          }
+        ]
+      }
+    ]
+  },
+  "template_systems_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "TemplateMessages"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "general-config"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_settings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "billing_schedules_settings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "online_registration_settings_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationIsSchool"
+      },
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "IEL"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "onlineregistration-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "transition_next_year_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "course_duplication_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "import_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Users",
+          "Equipments"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "manage",
+            "subject": "user"
+          },
+          {
+            "action": "manage",
+            "subject": "equipments"
+          }
+        ]
+      }
+    ]
+  },
+  "parcours_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "pedagogics-administration"
+          }
+        ]
+      }
+    ]
+  },
+  "family_quotient_models_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "BillingAdministration"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "billings-seizure"
+          }
+        ]
+      }
+    ]
+  },
+  "pseudonymization_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "GeneralConfig"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "organization"
+          }
+        ]
+      }
+    ]
+  },
+  "access_rewards_list_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "AccessReward"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "accessreward"
+          }
+        ]
+      }
+    ]
+  },
+  "access_rewards_command_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "AccessRewardCommand"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "accessreward"
+          }
+        ]
+      }
+    ]
+  },
+  "rewards_list_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Reward"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "reward"
+          }
+        ]
+      }
+    ]
+  },
+  "agenda_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Events",
+          "Courses",
+          "Examens",
+          "EducationalProjects"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "events"
+          },
+          {
+            "action": "read",
+            "subject": "examens"
+          },
+          {
+            "action": "read",
+            "subject": "educationalprojects"
+          },
+          {
+            "action": "read",
+            "subject": "courses"
+          }
+        ]
+      }
+    ]
+  },
+  "attendance_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Attendances"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "attendances"
+          }
+        ]
+      }
+    ]
+  },
+  "course_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Courses"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "courses"
+          }
+        ]
+      }
+    ]
+  },
+  "exam_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Examens"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "examens"
+          }
+        ]
+      }
+    ]
+  },
+  "pedagogics_project_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "EducationalProjects"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "educationalprojects"
+          }
+        ]
+      }
+    ]
+  },
+  "report_activity_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "Statistic"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "statistic"
+          }
+        ]
+      }
+    ]
+  },
+  "education_quotas_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "PedagogicsAdministation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "educationstudent"
+          }
+        ]
+      }
+    ]
+  },
+  "fede_stats_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "StatisticFederation"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "statistic"
+          }
+        ]
+      }
+    ]
+  },
+  "structure_stats_page": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "organizationHasAnyModule",
+        "parameters": [
+          "StatisticStructure"
+        ]
+      },
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "statistic"
+          }
+        ]
+      }
+    ]
+  },
+  "advanced_modification_website": {
+    "action": "display",
+    "conditions": [
+      {
+        "function": "accessHasAnyRoleAbility",
+        "parameters": [
+          {
+            "action": "read",
+            "subject": "website"
+          }
+        ]
+      }
+    ]
+  }
+} as const

+ 54 - 0
prepare/compileAbilitiesConfig.js

@@ -0,0 +1,54 @@
+/**
+ * Precompile the abilities config from Yaml to TS
+ */
+import * as fs from 'fs';
+import * as path from 'path';
+import * as yaml from 'js-yaml';
+function loadYamlFile(filePath) {
+    try {
+        const fileContents = fs.readFileSync(filePath, 'utf8');
+        return yaml.load(fileContents);
+    }
+    catch (error) {
+        console.error(`Error loading YAML file ${filePath}:`, error);
+        return {};
+    }
+}
+function compileAbilitiesConfig() {
+    const configDir = path.join(process.cwd(), 'config/abilities/pages');
+    const outputPath = path.join(process.cwd(), 'config/abilities-config-precompiled.ts');
+    console.log('Starting abilities config compilation...');
+    // Read all YAML files from the pages directory
+    const yamlFiles = fs.readdirSync(configDir).filter(file => file.endsWith('.yaml'));
+    const compiledAbilities = {};
+    yamlFiles.forEach(file => {
+        const filePath = path.join(configDir, file);
+        console.log(`Processing ${file}...`);
+        const config = loadYamlFile(filePath);
+        // Merge all abilities from this file into the compiled config
+        Object.assign(compiledAbilities, config);
+    });
+    // Generate TypeScript content
+    const header = `/**
+ * AUTO-GENERATED FILE - DO NOT MODIFY MANUALLY
+ *
+ * This file is automatically generated from YAML configuration files
+ * in config/abilities/pages/ directory.
+ *
+ * To make changes, edit the source YAML files and run the compilation script:
+ * npm run compile:abilities
+ *
+ * Generated on: ${new Date().toISOString()}
+ */
+
+`;
+    const tsContent = `${header}export default ${JSON.stringify(compiledAbilities, null, 2)} as const
+`;
+    // Write the compiled TypeScript file
+    fs.writeFileSync(outputPath, tsContent, 'utf8');
+    console.log(`✓ Abilities config compiled successfully to ${outputPath}`);
+    console.log(`✓ Processed ${yamlFiles.length} YAML files`);
+    console.log(`✓ Generated ${Object.keys(compiledAbilities).length} ability definitions`);
+}
+// Run the compilation
+compileAbilitiesConfig();

+ 82 - 0
prepare/compileAbilitiesConfig.ts

@@ -0,0 +1,82 @@
+/**
+ * Precompile the abilities config from Yaml to TS
+ */
+
+import * as fs from 'fs'
+import * as path from 'path'
+import * as yaml from 'js-yaml'
+
+interface AbilityCondition {
+  function: string
+  parameters?: any[]
+  expectedResult?: boolean
+}
+
+interface AbilityConfig {
+  action: string
+  conditions: AbilityCondition[]
+}
+
+interface CompiledAbilities {
+  [key: string]: AbilityConfig
+}
+
+function loadYamlFile(filePath: string): any {
+  try {
+    const fileContents = fs.readFileSync(filePath, 'utf8')
+    return yaml.load(fileContents)
+  } catch (error) {
+    console.error(`Error loading YAML file ${filePath}:`, error)
+    return {}
+  }
+}
+
+function compileAbilitiesConfig(): void {
+  const configDir = path.join(process.cwd(), 'config/abilities/pages')
+  const outputPath = path.join(process.cwd(), 'config/abilities/config-precompiled.ts')
+
+  console.log('Starting abilities config compilation...')
+
+  // Read all YAML files from the pages directory
+  const yamlFiles = fs.readdirSync(configDir).filter(file => file.endsWith('.yaml'))
+  const compiledAbilities: CompiledAbilities = {}
+
+  yamlFiles.forEach(file => {
+    const filePath = path.join(configDir, file)
+    console.log(`Processing ${file}...`)
+
+    const config = loadYamlFile(filePath)
+
+    // Merge all abilities from this file into the compiled config
+    Object.assign(compiledAbilities, config)
+  })
+
+  // Generate TypeScript content
+  const header = `/**
+ * AUTO-GENERATED FILE - DO NOT MODIFY MANUALLY
+ *
+ * This file is automatically generated from YAML configuration files
+ * in config/abilities/pages/ directory.
+ *
+ * To make changes, edit the source YAML files and run the compilation script:
+ * npm run compile:abilities
+ *
+ * Generated on: ${new Date().toISOString()}
+ */
+
+`
+
+  const tsContent = `${header}export default ${JSON.stringify(compiledAbilities, null, 2)} as const
+`
+
+  // Write the compiled TypeScript file
+  fs.writeFileSync(outputPath, tsContent, 'utf8')
+
+  console.log(`✓ Abilities config compiled successfully to ${outputPath}`)
+  console.log(`✓ Processed ${yamlFiles.length} YAML files`)
+  console.log(`✓ Generated ${Object.keys(compiledAbilities).length} ability definitions`)
+}
+
+// Run the compilation
+compileAbilitiesConfig()
+

+ 2 - 6
services/rights/abilityBuilder.ts

@@ -5,6 +5,7 @@ import RoleUtils from '~/services/rights/roleUtils'
 import type { AbilitiesType, AccessProfile } from '~/types/interfaces'
 import type { ABILITIES } from '~/types/enum/enums'
 import type OrganizationProfile from '~/models/Organization/OrganizationProfile'
+import abilitiesConfig from '~/config/abilities/config-precompiled'
 
 interface ConditionParameters {
   action: string
@@ -25,8 +26,6 @@ class AbilityBuilder {
   private readonly accessProfile: AccessProfile
   private readonly organizationProfile: OrganizationProfile
 
-  private readonly configFile = './config/abilities/config.yaml'
-
   private abilities: Array<AbilitiesType> = []
 
   /**
@@ -73,11 +72,8 @@ class AbilityBuilder {
   buildAbilitiesFromConfig() {
     const abilitiesByConfig: Array<AbilitiesType> = []
 
-    const doc = yaml.read(this.configFile)
-    const fromConfig = doc.abilities
-
     _.each(
-      fromConfig,
+      abilitiesConfig,
       (
         ability: { action: ABILITIES; conditions: Array<Condition> },
         subject: string,