Phase 10, part 5: access enforced on every page, form and fragment
One table maps every address to an area (a module, Settings, anything signed in, or public); each route is checked against it, and the app won't start with a route missing from it. Changing needs edit on the module. For members who may only view, forms that would change something are shown disabled and htmx buttons hidden. The menu, the Overview, Search and the SEO emails follow each person's modules; Settings is for admins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -511,3 +511,9 @@ fieldset.access .access-grid label { margin: 0; }
|
||||
.avatar.none { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); text-align: center; line-height: 4rem; font-weight: 600; text-transform: uppercase; }
|
||||
.photo-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
|
||||
.photo-row form { margin: 0; }
|
||||
|
||||
/* A form a member may only view (access.go): what it holds stays
|
||||
readable; its buttons go. */
|
||||
fieldset.readonly { border: 0; padding: 0; margin: 0; min-width: 0; }
|
||||
fieldset.readonly button, fieldset.readonly input[type="submit"], fieldset.readonly input[type="file"] { display: none; }
|
||||
fieldset.readonly input, fieldset.readonly textarea, fieldset.readonly select { background: hsl(var(--muted)); color: hsl(var(--foreground)); }
|
||||
|
||||
Reference in New Issue
Block a user