Files
KabundiNjuki 2217484648
CI / Server (push) Has been cancelled
Initial LuKenya Marathon application
2026-09-24 00:05:12 +03:00

12 lines
374 B
Python

"""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)