# Role definitions for Xenia POS (APPS_PLATFORM D-7). # # A role is a LABEL plus a TEMPLATE. The template (which permission keys a new user of # this role gets) is declared on each permission in the module manifests # (Perm(..., roles=(...))) and read by core/access/templates.py::role_template(). # After creation a user's keys are edited freely. superadmin holds every key implicitly. # English labels are the source; label_el stays until the manager UI uses i18n keys # (i18n key: role.). ALL_ROLES: list[dict] = [ {"value": "superadmin", "label": "Superadmin", "label_el": "Superadmin"}, {"value": "owner", "label": "Owner", "label_el": "Ιδιοκτήτης"}, {"value": "store_manager", "label": "Store Manager", "label_el": "Διαχειριστής Καταστήματος"}, {"value": "staff_manager", "label": "Staff Manager", "label_el": "Διαχειριστής Προσωπικού"}, {"value": "chef", "label": "Chef", "label_el": "Σεφ"}, {"value": "assistant_chef", "label": "Assistant Chef", "label_el": "Βοηθός Σεφ"}, {"value": "barista", "label": "Barista", "label_el": "Barista"}, {"value": "barman", "label": "Barman / Barwoman", "label_el": "Barman / Barwoman"}, {"value": "waiter", "label": "Waiter", "label_el": "Σερβιτόρος"}, {"value": "assistant_waiter", "label": "Assistant Waiter", "label_el": "Βοηθός Σερβιτόρου"}, {"value": "custom", "label": "Custom", "label_el": "Προσαρμοσμένος"}, ] VALID_ROLES: set[str] = {r["value"] for r in ALL_ROLES}