From 37801c255e77ecd52e6758a46fc3ff5441b5ac11 Mon Sep 17 00:00:00 2001 From: Joseph Spiker Date: Tue, 6 Oct 2026 04:47:45 -0400 Subject: [PATCH] docs: correct Marks Field Service (legacy CRM) in the beta README spikersoft-backend@master SpikerSoft.Api/Domain/Employees/EmployeesController.cs:31 Co-authored-by: Cursor --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 927a1d7..78e0f7c 100644 --- a/README.md +++ b/README.md @@ -2479,14 +2479,14 @@ The original single-tenant field-service CRM for the Mark Wilson generator-servi - **Customer CRUD** — Create, view, update residential and commercial customer records - **Google Maps integration** — Visualize customer locations and plan service routes - **Equipment tracking** — Generator and propane tank inventory per customer -- **Service contracts** — Track service agreements and maintenance schedules -- **Address management** — Structured addresses with postal code lookup integration +- **Service contracts** — The customer document stores maintenance contracts (start date, end date, and the generator). The service-contract screen still shows a hardcoded sample and does not load or save them +- **Address management** — Structured addresses with a US state dropdown. The postal code is typed in; the form does not look up city or state from it ### Scope The backend surface is far larger than one controller: `MarkWilsonsCustomerController` (route `/api/mark-wilson/customer`) plus supporting domains `ServiceCalls`, `ServiceCallReasons`, `Employees`, `Parts`, `Labors`, `Milages`, `FuelTypes`, `GeneratorBrands`, `AddressTypes`, `PhoneTypes`. The frontend lives under `_components/marks-site/` (`marks-landing-page`, `marks-customer-list`, `marks-generator`, `marks-propane-tank`, `marks-service-call`, `marks-service-contract`, `marks-address`). -> **Auth note:** because this CRM shares the main Keycloak realm with student/consumer accounts, all of it is gated `Admin/Staff` — a plain `[Authorize]` here once let any platform user read customer PII, fixed in spikersoft-issues#688's follow-ups. +> **Auth note:** the customer controller is `[Authorize(Roles = "Admin,admin,Staff,staff")]`. A bare `[Authorize]` once let any platform user read customer PII; that controller is staff-gated now (spikersoft-issues#688). Service calls, service-call reasons, parts, labor, and mileage use the same role gate. Employees, and reads of fuel types, address types, phone types, and generator brands, are any signed-in user. Generator-brand writes are Admin/Staff. ### Key Files