handbook, handbook-inspector, handbook-office, and handbook-admin in attik-backend/src/util/data/permissionsData.ts. Global roles such as leader and exec-leader exist but are not used to filter which help docs a user can read within a handbook._companyId) with list set to help-docs or handbook. The schema in attik-backend/src/models/helpDocSchema.ts has no visibility, audience, or manager-only field.helpdoc list API in attik-backend/src/routes/helpdoc.ts filters by company, list, and status only—no role-based read filtering.attik-frontend/src/app/tools/handbook/[[...id]]/page.tsx gates routes with handbook-inspector vs handbook-office and uses handbook-admin for edit; anyone with handbook access for that space sees all active docs returned by the API.Backend
attik-backend/src/models/helpDocSchema.ts) with a way to mark content as manager-only (or equivalent audience metadata)—field name and shape are decision needed.attik-backend/src/routes/helpdoc.ts (list and single-doc GET) so non-managers never receive restricted content, including search/aggregate paths if they apply to handbook docs.attik-backend/src/util/data/permissionsData.ts (e.g. whether leader / exec-leader, a new grant, or department-specific leads define “manager”).Frontend
attik-frontend/src/app/tools/handbook/[[...id]]/ (page.tsx, HelpDocBase.tsx, HelpDocForm.tsx, HelpDocSheet.tsx) should respect restricted docs: authoring UI for managers to flag content, and read UI that hides or blocks restricted articles for unauthorized users.handbook-admin sufficient for authoring restricted content?Out of scope (unless explicitly pulled in)
attik-backend/src/models/helpDocSchema.ts, attik-backend/src/routes/helpdoc.ts, attik-backend/src/util/data/permissionsData.tsattik-frontend/src/app/tools/handbook/[[...id]]/page.tsx, HelpDocBase.tsx, HelpDocForm.tsxPlease authenticate to join the conversation.
Planned
Main App
10 days ago
Linear
Get notified by email when there are changes.
Planned
Main App
10 days ago
Linear
Get notified by email when there are changes.