Initial LuKenya Marathon application
CI / Server (push) Has been cancelled

This commit is contained in:
KabundiNjuki
2026-09-24 00:05:12 +03:00
parent 9c0e1be973
commit 2217484648
122 changed files with 16980 additions and 518 deletions
@@ -0,0 +1,11 @@
"""Create the roles used by race-day staff. Runs before doctypes sync so permission rows can name them."""
import frappe
ROLES = ("Registration Desk", "Timing Officer", "Race Director")
def execute():
for name in ROLES:
if not frappe.db.exists("Role", name):
frappe.get_doc({"doctype": "Role", "role_name": name, "desk_access": 1}).insert(ignore_permissions=True)