Enforce tenant member permissions

This commit is contained in:
Codex Agent
2026-01-16 13:33:36 +01:00
parent 8655322495
commit 1239f2b526
22 changed files with 592 additions and 112 deletions

View File

@@ -52,6 +52,10 @@ vi.mock('../../../context/EventContext', () => ({
}),
}));
vi.mock('../../../auth/context', () => ({
useAuth: () => ({ user: { role: 'tenant_admin' } }),
}));
vi.mock('../../hooks/useMobileNav', () => ({
useMobileNav: () => ({ go: vi.fn(), slug: 'event-1' }),
}));